Show tag

2 snippets in Git

Also written as show tags

GitGit

List Tags

Git · Tags
syntax
git tag [-l "pattern"]
example
git tag
git tag -l "v2.*"
output
v1.0.0
v1.5.0
v2.0.0
v2.1.0

Note Use -l with a glob pattern to filter. Combine with --sort=-version:refname to sort by semantic version descending.

View Tag Details

Git · Tags
syntax
git show <tag>
example
git show v2.0.0
output
tag v2.0.0
Tagger: Samira Khan <[email protected]>
Date:   Mon Mar 30 14:22:01 2026 +0000

Major release: new payment system

commit a1b2c3d...
...

Note For annotated tags, shows the tagger info and message plus the commit it points to. For lightweight tags, just shows the commit.