【发布时间】:2021-12-14 07:41:38
【问题描述】:
【问题讨论】:
-
使用
git for-each-ref,加上一些测试,因为有些标签没有注释。
【问题讨论】:
git for-each-ref,加上一些测试,因为有些标签没有注释。
我自己使用这个别名,也许可以根据您的需要进行调整:
git config --global alias.tl 'git for-each-ref --sort=-authordate --format="%(contents:subject) %(objectname:short) (%(refname:short))" refs/tags'
# then just
git tl
注意它需要注释标签。
【讨论】: