Last active
January 21, 2016 23:51
-
-
Save justinleveck/9f2ac027e8d0e729179f to your computer and use it in GitHub Desktop.
git checkout alias (with fuzzy match)
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
[alias] | |
co = "!f() { \ | |
git checkout $(git branch | grep $1 | sed -e 's/^* //'); \ | |
}; f" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment