Using git describe --tags doesn't ultimately give the latest tag that was created. Therefore git rev-list --tags --max-count=1 was used to grab the hash of the latest tag and then supply the hash to git describe --tags HASH_VALUE
A quick dry-run on shell:
Get to the root of any directory initialized with git.
Using
git describe --tags
doesn't ultimately give the latest tag that was created. Thereforegit rev-list --tags --max-count=1
was used to grab the hash of the latest tag and then supply the hash togit describe --tags HASH_VALUE
A quick dry-run on shell:
git describe --tags $(git rev-list --tags --max-count=1)