git - Can i push a new local branch to remote 'feature/new_branch'? -
based on : how push new local branch remote git repository , track too?
i have local branch named 'new_branch' , push local branch remote following:
$ git ls-remote origin 433ecee11614bcda452ddf5817ebb56212d96192 head 94d6b198dd6bbba9520e8aa11a1d6fc67aed818a refs/heads/feature/f1 76d6b198dd6bbba9520e8aa11a1dafc67aed818a refs/heads/feature/f2 $git push -u origin feature/new_branch
the git reports following errors:
fatal: 'origin/feature/new_branch' not appear git repository fatal: not read remote repository.
i try following , works me not want.
$git push -u origin new_branch
my local environment has not installed 'git flow'. possible can directly push non-feature local branch feature branch in remote?
thank you
if want push feature/new_branch, git push origin new_branch:feature/new_branch -u
.
however, recommend rename local branch git branch -m new_branch feature/new_branch
first, push origin, avoid confusion later.
Comments
Post a Comment