einpoklum
einpoklum

Reputation: 131986

List all git tags with their annotations?

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

Answers (1)

Romain Valeri
Romain Valeri

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

Related Questions