Sort Git Branches By Activity
Jun 2, 2021
The aim of this playbook🏁 is to define a command that lists all branches in the order they were manipulated (in a descending fashion).
git branch -a --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'