-
-
Save nopolabs/723e62b097d278403f6a41b246cbdec0 to your computer and use it in GitHub Desktop.
Get Previous Git Tag (the one before the latest tag on trunk)
This file contains 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
# http://stackoverflow.com/a/28818420/484780 | |
git describe --abbrev=0 --tags `git rev-list --first-parent --tags --skip=1 --max-count=1` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment