I had a repo with dozens of abandoned or merged remote branches. Before deleting them wholesale, I wanted to know just how old they were.
I adapted this Stack Overflow answer, but dressed it up
in a for
loop since I wanted all of them. Also, since I wanted to sort them, I switched the date format to %cs
(Short ISO),
which didn't work in git 2.18.0
but does work in 2.28.0