Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seeing what revision goes with a tag in Git

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?

like image 285
fakeleft Avatar asked Jul 28 '09 14:07

fakeleft


People also ask

How do I see git tags?

Find Latest Git Tag Available In order to find the latest Git tag available on your repository, you have to use the “git describe” command with the “–tags” option. This way, you will be presented with the tag that is associated with the latest commit of your current checked out branch.

What is tag version in git?

Tags are ref's that point to specific points in Git history. Tagging is generally used to capture a point in history that is used for a marked version release (i.e. v1. 0.1). A tag is like a branch that doesn't change. Unlike branches, tags, after being created, have no further history of commits.


1 Answers

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
like image 195
simplyharsh Avatar answered Sep 29 '22 21:09

simplyharsh