Created
February 6, 2015 16:59
-
-
Save marcuswestin/b44af9f71f85365959b2 to your computer and use it in GitHub Desktop.
Git checkout --force (checkout, or create if it doesn't exist)
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 show-branch foo1 &>/dev/null) && (git checkout foo1) || (git checkout -b foo1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment