Created
April 15, 2016 09:06
-
-
Save lherich/37597f0df5ad40500d20d9d5e0ce93ee to your computer and use it in GitHub Desktop.
Checkout git branch by grep
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 gitcheck=gitcheckFunc | |
gitcheckFunc() { | |
git branch | grep $1 | xargs git checkout | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment