Today I Learned

A Hashrocket project

List local branches sorted by most recent commit

If you have a lot of local branches in your repo and you want to sort them by most recent commits:

git for-each-ref --sort=-committerdate refs/heads/

Source