Skip to content

Instantly share code, notes, and snippets.

@leoluz
Created June 10, 2014 17:46
Show Gist options
  • Save leoluz/7d04b4683e7754d34acd to your computer and use it in GitHub Desktop.
Save leoluz/7d04b4683e7754d34acd to your computer and use it in GitHub Desktop.
[git] return the latest tag name created in the repo
git for-each-ref --count=1 --sort=-taggerdate --format='%(refname:short)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment