I am on local master branch
and created subbranch.
I then tried to push it, so that others can access to this branch and work on it too, but it failed.
Then I thought I should create a remote branch, so I ran
git push origin subBran
The branch was successfully pushed to remote; however, the branch is not off master
, but parallel to master
...
What command(s) should I use to have the subbranch off master
, and then push to remote?
I think I want remotes/origin/master/subBranch
Current status:
$ git branch -a
* subBranch
master
remotes/origin/subBranch
remotes/origin/jc_some5
remotes/origin/master