Given a git tag (ex. v.0.1.0) I would like a bash command that will give me the previous chronological tag (ex. v.0.0.5). Here I'm using semver for version control and you can see that I can't just decrement the numbers. I need the previous last tag that was given to the repo. Thoughts?
I've tried git describe --tags
and its giving me the last tag kindof. But nothing this specific.