Answers for "setup to track remote branch from origin"

3

create local branch to track remote

git checkout --track origin/some_remote_branch
Posted by: Guest on August-04-2020
1

git track remote branch

# Set upstream when pushing to remote
git push -u origin topic

# Set upstream without pushing it
# with option -u / --set-upstream-to
git branch -u origin/topic
git branch --set-upstream-to=origin/topic
Posted by: Guest on February-20-2021

Code answers related to "setup to track remote branch from origin"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language