Sort git tags like a pro
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
The default `git tag` command sorts tags alphabetically, which breaks semantic versioning order (e.g., 1.10.0 appears before 1.2.0). Using `git tag --sort v:refname` sorts tags in correct ascending semver order, while `git tag --sort -v:refname` gives descending order. To make descending sort the global default, run `git config --global tag.sort -v:refname`.