Created
September 10, 2012 18:19
-
-
Save ryangreenberg/3692694 to your computer and use it in GitHub Desktop.
Order git branch by last commit to branch
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
alias branches='for k in `git branch|sed s/^..//`;do echo -e `git log -1 --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" "$k"`\\t"$k";done|sort' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment