🏷️ Tags

How to list tags in Git

View all tags in the repository.

List all tags
git tag

Lists all tags in alphabetical order.

List tags matching a pattern
git tag -l "v1.*"

Lists only tags that match the pattern.

When to use: Filtering tags by version prefix.

Show tag details
git show v1.0.0

Shows the tag metadata and the commit it points to.

List remote tags
git ls-remote --tags origin

Lists all tags on the remote without fetching them.

← Back to Git Reference