Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created November 16, 2012 10:14
Show Gist options
  • Save fgarcia/4086172 to your computer and use it in GitHub Desktop.
Save fgarcia/4086172 to your computer and use it in GitHub Desktop.
list of #git branches sorted by last commit date
for C in $(git for-each-ref --sort=committerdate refs/heads --format='%(refname)' | sort )
do
git show -s --format="%ci $C" "$C"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment