Skip to content

Instantly share code, notes, and snippets.

View breyten's full-sized avatar

Breyten Ernsting breyten

View GitHub Profile
@breyten
breyten / git-branches-by-commit-date.sh
Last active December 12, 2015 03:28 — forked from jasonrudolph/git-branches-by-commit-date.sh
List unmerged branches with the latest commit message for each branch
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch --no-merged`;do echo -e `git show --abbrev-commit --format="%ci %d %s" $branch | head -n 1`; done | sort -r