Remix.run Logo
asb 7 hours ago

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

mmsc 5 hours ago | parent | next [-]

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

hsuduebc2 2 hours ago | parent [-]

Thanks!

nulltrace 4 hours ago | parent | prev | next [-]

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

quuxplusone 3 hours ago | parent | next [-]

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.

seattle_spring an hour ago | parent | prev [-]

I would hope so

pkaodev 7 hours ago | parent | prev | next [-]

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

johnwheeler 3 hours ago | parent | prev [-]

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.

hsuduebc2 2 hours ago | parent [-]

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.