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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With