Skip to content

Instantly share code, notes, and snippets.

@isamrish
Last active February 4, 2020 10:06
Show Gist options
  • Save isamrish/bdb4b8456cc8bc7bee825d23ee55fa60 to your computer and use it in GitHub Desktop.
Save isamrish/bdb4b8456cc8bc7bee825d23ee55fa60 to your computer and use it in GitHub Desktop.
How to track remote branch to locally

If you have created a branch remotely , you can track it to your local environment by running this command

git checkout --track origin/branch-name

For Example, If the remote branch name is bug-fix, then command will be

git checkout --track origin/bug-fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment