Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

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


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

Thanks!

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

Yes. This is what one wants, since if you have recently rebased it, you're clearly doing work with it. Meanwhile, branches you don't care to touch sink to the bottom of the list.

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.


Heh. "Just Google it" answers we're never particular conversation lubricant as they are not now. But of course you are right we live in age of wonder once again.

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github