Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tekin/129195 to your computer and use it in GitHub Desktop.
Save tekin/129195 to your computer and use it in GitHub Desktop.
git fetch origin other_branch:other_branch
* [new branch] other_branch -> other_branch
git branch
* master
other_branch
git checkout other_branch
# Or, in one swift command:
git checkout -t origin/other_branch
# which is equivalent to:
git checkout --track -b other_branch origin/other_branch
# OK, I'm going to frolic in the sun, no more computer today!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment