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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -