Created
July 22, 2013 20:49
-
-
Save supr/6057542 to your computer and use it in GitHub Desktop.
Extract latest git tag for the same commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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