Skip to content

Instantly share code, notes, and snippets.

@kevinkepp
Created January 17, 2014 08:39
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 kevinkepp/8470191 to your computer and use it in GitHub Desktop.
Save kevinkepp/8470191 to your computer and use it in GitHub Desktop.
Git: List all branches by the date of their last commit
git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate) %(refname)' | sed 's/refs\/heads\///g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment