Skip to content

Instantly share code, notes, and snippets.

@stefanotorresi
stefanotorresi / git-branches-info.sh
Last active December 16, 2015 05:49 — forked from jasonrudolph/git-branches-by-commit-date.sh
show a list with info about the last commit of each branch.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ct %cr | %h %s" $branch | head -n 1` \| $branch; done | sort -r