Skip to content

Instantly share code, notes, and snippets.

@viktorkelemen
Created August 2, 2012 05:00
Show Gist options
  • Select an option

  • Save viktorkelemen/3233808 to your computer and use it in GitHub Desktop.

Select an option

Save viktorkelemen/3233808 to your computer and use it in GitHub Desktop.
List of git branches ordered by most recent commit
git for-each-ref --count=10 \
--sort=-committerdate refs/heads/ \
--format='%(refname) %(committerdate) %(authorname)' \
| sed 's/refs\/heads\///g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment