我怎样才能只显示带注释的标签的消息?

How can I show just the message for an annotated tag?

git 中似乎有一些方法可以显示注释标记的消息以及提交详细信息和其他内容 git show the_tag,或者名称和详细信息 git tag -l -n100 the_tag .

但是什么命令显示 message/body 而绝对没有别的?

当方便命令做的太多时,去核心:-)

git for-each-ref refs/tags/$tagname --format='%(contents)'

for-each-ref docs