Skip to content

Instantly share code, notes, and snippets.

@jdrury
Created September 5, 2017 15:47
Show Gist options
  • Save jdrury/a88988940eeeb624d613d188b84e6f9e to your computer and use it in GitHub Desktop.
Save jdrury/a88988940eeeb624d613d188b84e6f9e to your computer and use it in GitHub Desktop.
bash script to show git branches by date
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