Git tag is sorted by time
Label
Git tag-a v1.2.0-m "new version"
Displays tags and comments, which are sorted in the order of tag's version, not the chronological order of tag
Git tag-n
Implement tags and comments, sorted according to the time of tagging, this should be the most likely to use, anyway, after I have more versions, I use this command to check.
Git tag-n-- sort=taggerdate
-- sort=key. For the value of key, please refer to https://git-scm.com/docs/git-for-each-ref.
If you want to see time, tag and tag comments at the same time, you can use the following command
Git for-each-ref-- sort=taggerdate-- format'% (refname:short)% (taggerdate:short)% (subject)'
You can retag a version, and commitId only needs to fill in the first 7 digits
Git tag-a v1.2 4e8223a
Deleting a tag does not delete the version, it just deletes the tag.
Git tag-d v1.2