Git: Sort branches by recency
When you type git branch, your branch list is sorted alphabetically by default. This isn’t super helpful. To sort your branches by their last commit date, with the most recent at the top, add this to your
.gitconfig
:
[branch]
sort = -committerdate
Via Adam Hollett.
Leave a comment