Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Git tag is sorted by time

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report