Forked from mtkd/Checkout alternative branch on Github
Created
June 13, 2009 10:52
-
-
Save tekin/129195 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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