List Tags
Git · Tagssyntax
git tag [-l "pattern"]example
git tag
git tag -l "v2.*"output
v1.0.0
v1.5.0
v2.0.0
v2.1.0Note Use -l with a glob pattern to filter. Combine with --sort=-version:refname to sort by semantic version descending.
2 snippets in Git
Also written as show tags
git tag [-l "pattern"]git tag
git tag -l "v2.*"v1.0.0
v1.5.0
v2.0.0
v2.1.0Note Use -l with a glob pattern to filter. Combine with --sort=-version:refname to sort by semantic version descending.
git show <tag>git show v2.0.0tag 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.