logoalt Hacker News

asbyesterday at 7:43 PM4 repliesview on HN

Even better (IMHO!) is `git config branch.sort -committerdate` (note the `-`). This will sort newest committer date first.


Replies

mmscyesterday at 10:09 PM

`git config --global branch.sort -committerdate`

show 1 reply
nulltraceyesterday at 10:55 PM

Rebase an old branch and it suddenly looks recent again. The rewritten tip gets a fresh committer date.

show 2 replies
pkaodevyesterday at 7:47 PM

I have this as an alias in my .zshrc!! Very handy

johnwheelertoday at 12:26 AM

Even better, "hey, chat GPT, list my branches by commit date."

I know that's not a popular answer, but I'm just trying to demonstrate the reality that this kind of knowledge isn't specialized anymore.

show 1 reply