Pragmatism in today's world

Sort git branches by date

I’m sure everyone is already doing this, but I’ve just discovered:

git config --global branch.sort -committerdate

Now, `git branch` sorts my branches by last commit date, most recent first.

To reset:

git config --global --unset branch.sort

Thoughts? Leave a reply

Your email address will not be published. Required fields are marked *