【问题标题】:List all git tags with their annotations? [duplicate]列出所有带有注释的 git 标签? [复制]
【发布时间】:2021-12-14 07:41:38
【问题描述】:

我知道如何list all git tags。但是 - 如果我想列出它们并打印每个标签的注释怎么办?

我可以用 git 本身做这个吗,还是需要一个带有 git show 的 shell 循环

【问题讨论】:

标签: git git-tag


【解决方案1】:

我自己使用这个别名,也许可以根据您的需要进行调整:

git config --global alias.tl 'git for-each-ref --sort=-authordate --format="%(contents:subject)  %(objectname:short)  (%(refname:short))" refs/tags'

# then just
git tl

注意它需要注释标签。

【讨论】:

    猜你喜欢
    • 2011-01-18
    • 2017-10-13
    • 2010-11-07
    • 1970-01-01
    • 2023-03-04
    • 2014-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多