so the git tag
command lists the current git tags
tag1
tag2
git tag -n
prints tag\'s message
tag1
The tags have to be signed and/or messaged. Lightweight tags don't have SHA1 objects and are just refs. Otherwise try git show
.
git for-each-ref --format='%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end) %(refname)' refs/tags
This gives a list of all commits for tags. Annotated tags are dereferenced. Send thanks here.