Hacker News new | ask | show | jobs
by jkubicek 2264 days ago
I do the same thing for this slightly longer alias

    git for-each-ref --sort=-committerdate --format='%(committerdate:short): %(refname:short)' refs/heads/
Including the dates is crucial; I'll frequently go in and clean up personal branches that are older than X months.
1 comments

I've got one really close to this:

    git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short) %(committerdate:short) %(upstream:remoteref)' | column -t