Seeing what revision goes with a tag in Git

fakeleft picture fakeleft · Jul 28, 2009 · Viewed 8.3k times · Source

Beginner Git question:

In the Mercurial world, hg tags gives me a list of tags and the corresponding revisions, whereas git tag only lists the tag names. How do I see what the matching rev number/hash is?

Answer

simplyharsh picture simplyharsh · Jul 28, 2009

For full information associated with that tag, use command

git show v1.5

Or you can see the lightweight information, skipping details, by command

git show v1.5 -lw