Created
December 10, 2014 19:12
-
-
Save robin-drexler/a0c460a359569a2cd117 to your computer and use it in GitHub Desktop.
[TIL]Checkout previous git branch
This file contains 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 co - |
This file contains 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
Robins-MacBook-Pro-2:TIL robin$ git co master | |
Switched to branch 'master' | |
Your branch is up-to-date with 'origin/master'. | |
Robins-MacBook-Pro-2:TIL robin$ git co - | |
Switched to branch 'gh-pages' | |
Robins-MacBook-Pro-2:TIL robin$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment