Skip to content

Instantly share code, notes, and snippets.

@msabramo
Created February 28, 2014 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msabramo/9281548 to your computer and use it in GitHub Desktop.
Save msabramo/9281548 to your computer and use it in GitHub Desktop.
Show git branches with info about last commit
bash -c 'for k in `git branch -a|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen %ci %H %Cblue %<(35)%cN %<(25)%cr%Creset" $k|head -n 1` $k;done|sort -r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment