Created
June 3, 2018 07:02
-
-
Save martimatix/66851f16067995dc9af04378785ed6bd to your computer and use it in GitHub Desktop.
checkout
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
#!/bin/bash | |
echo "determining branch" | |
branch=`git branch | sed -e s/^\.\ // | grep $1` | |
echo "checking out $branch" | |
git checkout $branch |
Then run $ chmod +x ~/bin/checkout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put in
~/bin/checkout