Skip to content

Instantly share code, notes, and snippets.

@supr
Created July 22, 2013 20:49
Show Gist options
  • Select an option

  • Save supr/6057542 to your computer and use it in GitHub Desktop.

Select an option

Save supr/6057542 to your computer and use it in GitHub Desktop.
Extract latest git tag for the same commit
git log --decorate -1 | head -1 | grep -Po '(?<=tag: )[0-9.{4}]+' | head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment