Skip to content

Instantly share code, notes, and snippets.

@b099l3
Last active November 1, 2018 11:49
Show Gist options
  • Save b099l3/e016b97eb18624b260af0fd568e0b9dc to your computer and use it in GitHub Desktop.
Save b099l3/e016b97eb18624b260af0fd568e0b9dc to your computer and use it in GitHub Desktop.
Branch stats
// 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