What\'s the simplest way to get the most recent tag in Git?
git tag a HEAD git tag b HEAD^^ git tag c HEAD^ git tag
output:
You could take a look at git describe, which does something close to what you're asking.
git describe