显示按日期排序的git标签 [英] Show git tags sorted by date
本文介绍了显示按日期排序的git标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何按时间顺序列出 git标签? (最近的标签第一)
git tag
只显示字母顺序。
解决方案
简单记住:
git log --tags --decorate --simplify by by decoration
更易阅读结果:
git log --tags --simplify-by-decoration --pretty =format:%d - %cr
How to list git tags in chronological order? (recent tags first)
git tag
only displays alphabetical order.
解决方案
Simple to remember:
git log --tags --decorate --simplify-by-decoration
Easier to read result:
git log --tags --simplify-by-decoration --pretty="format:%d - %cr"
这篇关于显示按日期排序的git标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文