Last active
August 29, 2015 13:57
-
-
Save willgarcia/109c9427e2f39934f1b3 to your computer and use it in GitHub Desktop.
last git tag
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
LAST_TAG=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1) | |
LAST_VERSION_STABLE=$(echo $LAST_TAG | sed 's/refs\/tags\///g') | |
echo $LAST_VERSION_STABLE | |
git describe --tags `git rev-list --tags --max-count=1` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment