Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git set branch tracking

# If want to set current local branch upstream
git branch --set-upstream-to=origin/remote-branch-name-here

# If not on the local branch that you want to set
git branch --set-upstream-to=origin/remote-branch-name-here local-branch-name-here
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #set #branch #tracking
ADD COMMENT
Topic
Name
4+7 =