Reputation: 131986
I know how to list all git tags. But - what if I want to list them and print each tag's annotation?
Can I do this with git itself, or do I need a shell loop with git show
Upvotes: 3
Views: 586
Reputation: 22047
I use this alias myself, maybe adapt it to your needs :
git config --global alias.tl 'git for-each-ref --sort=-authordate --format="%(contents:subject) %(objectname:short) (%(refname:short))" refs/tags'
# then just
git tl
Note that it is expecting annotated tags.
Upvotes: 1