List all git tags with their annotations?

Viewed 151

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

1 Answers

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.

Related