Sort Git Branches By Activity

Pavol Kutaj
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))'

sources

--

--

No responses yet