I see a relevant answer for creating an empty remote branch from master on this: Is it possible in git to create a new, empty remote branch without pushing?, using the following command:
git push origin origin:refs/heads/new_feature_name
But I need to create this new remote branch from a specific branch, other than master, without pushing code from local branch. How do I achieve that?