Skip to content

Instantly share code, notes, and snippets.

@berryp
Last active December 23, 2015 20:09
Show Gist options
  • Save berryp/6687991 to your computer and use it in GitHub Desktop.
Save berryp/6687991 to your computer and use it in GitHub Desktop.
Sort git tags by date
# Alias as `tagbydate = for-each-ref --sort=committerdate --format='%(refname:short)' refs/tags`
# `tagbydate- = for-each-ref --sort=-committerdate --format='%(refname:short)' refs/tags`
git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment