In git, let's say I have multiple tags with revision numbers, something like:
v1.1.0
v1.2.0
v1.2.1
v1.2.3
I'm interested in getting the last version number from the tag. If I do
git describe --tags --match "v1.2.*"
I will get v1.2.0
as the result, but I really want v1.2.3
If you want to list all tags, using a specifc order, you can (with git 2.0+) use a sort option.
See "How to sort git tags?"
In each case, the first result should be v1.2.3