so the git tag
command lists the current git tags
tag1
tag2
git tag -n
prints tag\'s message
tag1
I took the command from anatoly techtonik post added the headline message of the tags/commits and formated it as nice cols.
The result is a output identical to git tag -n
but with commit-hash as prefix.
git for-each-ref --format='%(if)%(*objectname)%(then)%(*objectname:short)%(else)%(objectname:short)%(end)|%(refname:short)|%(contents:subject)' refs/tags | column -t -s '|'
If you like to have the long-hash instead of the short, yust replace objectname:short
by objectname
.