Last active
November 1, 2018 11:49
-
-
Save b099l3/e016b97eb18624b260af0fd568e0b9dc to your computer and use it in GitHub Desktop.
Branch stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List all branches in last commit date order | |
git for-each-ref --sort=committerdate refs/remotes/ --format='%(committerdate:short) %(refname:short)' | |
// List all branches in last commit date order with last comitter name | |
git for-each-ref --sort=committerdate refs/remotes/ --format='%(committerdate:short) %(committername) %(refname:short)' | |
// List all branches that have been merged including local branches sorted by commiter date desc | |
git branch -a --sort=committerdate --merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment