salcode / salcode-git

My Git configuration.
MIT License
3 stars 1 forks source link

Sort branches by most recent #19

Closed salcode closed 10 months ago

salcode commented 10 months ago

When we run

git branch --sort=-committerdate

we get the branches listed with the most recent first.

We can set this as the default by adding the following to our Git configuration.

[branch]
    sort = -committerdate