Skip to content

Instantly share code, notes, and snippets.

@AlexanderRD
Created September 29, 2014 12:58
Show Gist options
  • Save AlexanderRD/1ef5819bc7e79b6c7252 to your computer and use it in GitHub Desktop.
Save AlexanderRD/1ef5819bc7e79b6c7252 to your computer and use it in GitHub Desktop.
Print out list of all branches with last commit date to the branch, including relative time since commit and color coding.
for k in `git branch|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