create local branch to track remote
git checkout --track origin/some_remote_branch
create local branch to track remote
git checkout --track origin/some_remote_branch
git bash upstream branch change
git branch --set-upstream-to=origin/branch
pull down remote branch git
git fetch origin
git checkout --track origin/<branch_name>
git track remote branch
$ git checkout --track origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us