How-to-simply...

Sort Git branches by recent change date

  • 1 git for-each-ref --sort='-committerdate' --format='%(refname)%09%(committerdate)' refs/heads | sed -e 's-refs/heads/--'

References