How to list git tags in chronological order? (recent tags first)
git tag only displays alphabetical order.
The correct answer is:
git tag --sort=-taggerdate taggerdate is the appropriate field. According to the git tag man page:
Prefix
-to sort in descending order of the value.
git tag uses the same sorting keys as git-for-each-ref, which is where the sorting keys are documented.
In git 2.3.3 I can just do this to get them sorted by date:
git tag --sort version:refname
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With