git - How to push new branch to remote repository with tracking option -
this question has answer here:
i working on local branch (feature1) created mainline branch. push local branch remote repository. how achieve in git along tracking option.
push -u option:
git push -u origin <branch> -u, short --set-upstream, set upstream in origin <branch> name. if omit branch name, local branch name used instead. full story on git's documentation.
Comments
Post a Comment