Created
September 28, 2015 19:42
-
-
Save pketh/6a7f581b98d5b6e52dc3 to your computer and use it in GitHub Desktop.
List my recent git branches
This file contains hidden or 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
# add this line to your .bash-profile (.bashrc should also work) | |
# call this in a repo folder with `git-recent` | |
alias git-recent="git for-each-ref --count=5 --sort=-committerdate refs/heads/ --format='🌺 %(refname:short)'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also add this as an alias in
.gitconfig
like:(I had to delete the unicode character because GitHub doesn't allow it in a comment)