Last Updated: January 28, 2019
·
1.064K
· oleiade

Git : How to track branches activity

Using Git, when you've lost a little bit of focus in your project (understand "When you have dozens of unmerged branches you don't remember what the hell they were used to").

You and your team could find usefull to list and order all the branches by their last activity. Gives a good idea of what's usefull, what's used, what is useless or even forgotten.

Command :

git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes

Source