Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git set upstream

# to connect a remote branch with your local one you
# can use branch command with the --set-upstream-to flag

# connecting origin/main to local main
git branch --set-upstream-to origin/main main

# same command shorter version
git branch -u origin/main main

# same command shorter - without branch name (defaults to current) 
git branch -u origin/main
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #git #set #upstream
ADD COMMENT
Topic
Name
9+8 =