Skip to content

Instantly share code, notes, and snippets.

@mbylstra
Last active December 19, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbylstra/5953779 to your computer and use it in GitHub Desktop.
Save mbylstra/5953779 to your computer and use it in GitHub Desktop.
sort git branches by last commit
git for-each-ref --sort=-committerdate refs/heads/
#http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment