When I type git branch, I receive a list of branches that appear to be sorted alphabetically instead of being sorted by their creation time.
Is there a way to make the output of git branch sorted by date?
When I type git branch, I receive a list of branches that appear to be sorted alphabetically instead of being sorted by their creation time.
Is there a way to make the output of git branch sorted by date?
Stujo's answer is my favorite, but I wanted to go one step further and make sort by committer date my default git branch behavior. Here's how:
git config --global branch.sort -committerdate
Remove the - before committerdate to sort the other way.
Now git branch will always be sorted by date!