less than 1 minute read

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.

Tags: ,

Categories:

Updated:

Leave a comment