I have a bunch of unannotated tags in the repository and I want to work out which commit they point to. Is there a command that that will just list the tags and their commit SHAs? Checking out the tag and looking at the HEAD seems a bit too labourious to me.
Update
I realised after I went through the responses that what I actually wanted was to simply look at the history leading up to the tag, for which git log <tagname> is sufficient.
The answer that is marked as answer is useful for getting a list of tags and their commits, which is what I asked. With a bit of shell hackery i'm sure it's possible to transform those into SHA+Commit message.
git show-refshows sha of the tag, not sha of the repo revision. $ git show-ref test 08b9c774ab20e5bdb638339cf4ea2c124b0dae54 refs/tags/test $ git checkout test HEAD is now at c7f8831... $ git checkout 08b9c77 HEAD is now at c7f8831... – Konstantin Pelepelin Jan 14 '14 at 12:17