Created
July 8, 2014 20:40
-
-
Save jrwdexter/006766707548370afe8c to your computer and use it in GitHub Desktop.
Displays branches and history for the current git repository. Place in $PATH to use.
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 | |
for k in `git branch -a $@|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment