How to list all tags along with the full message in git?

前端 未结 8 558
忘了有多久
忘了有多久 2020-12-07 07:12

I want git to list all tags along with the full annotation or commit message. Something like this is close:

git tag -n5

This does exactly w

8条回答
  •  北海茫月
    2020-12-07 07:35

    It's far from pretty, but you could create a script or an alias that does something like this:

    for c in $(git for-each-ref refs/tags/ --format='%(refname)'); do echo $c; git show --quiet "$c"; echo; done
    

提交回复
热议问题