Skip to content

Instantly share code, notes, and snippets.

@mertenvg
Created December 29, 2014 12:17
Show Gist options
  • Save mertenvg/5a50f8dddd670d8d8325 to your computer and use it in GitHub Desktop.
Save mertenvg/5a50f8dddd670d8d8325 to your computer and use it in GitHub Desktop.
Retrieve the current git tag from HEAD
git name-rev --tags --name-only $(git rev-parse HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment