Skip to content

Instantly share code, notes, and snippets.

@lukemartin
Created August 12, 2014 13:24
Show Gist options
  • Save lukemartin/774355ede015eb473d29 to your computer and use it in GitHub Desktop.
Save lukemartin/774355ede015eb473d29 to your computer and use it in GitHub Desktop.
Git: Sort tags
#!/bin/sh
# put in ~/bin
# make executable
# git tagssorted
git for-each-ref --format="%(taggerdate): %(refname)" --sort=-taggerdate --count=10 refs/tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment