Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lherich/7ae4a95d1e87916101f0 to your computer and use it in GitHub Desktop.
Save lherich/7ae4a95d1e87916101f0 to your computer and use it in GitHub Desktop.
Extend git branch by showing the last change date
# source: http://stackoverflow.com/a/2514279
for k in `git branch -r | perl -pe 's/^..(.*?)( ->.*)?$/\1/'`; 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