-
-
Save kunicmarko20/9eada2be3aeca9396849573bf068d57f to your computer and use it in GitHub Desktop.
Select branch to checkout from a list of recent ones.
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 | |
select branch in $(git branch --sort=-committerdate | head -n6 | grep -v "*") | |
do | |
git checkout $branch | |
exit | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment