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 local branch track remote
git branch --set-upstream foo upstream/foo
git local branch track remote
git branch --set-upstream-to=upstream/foo
git branch --set-upstream-to=upstream/foo foo
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 local branch track remote
git branch -u upstream/foo foo
git local branch track remote
git branch -u upstream/foo
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