git verify-tag

Inspection & Comparison

Check the GPG signature of tags


The 'git verify-tag' command checks the signature of annotated tags created with git tag -s. Release managers sign tags so users can verify that a release really comes from them; verify-tag prints the GPG result and fails if the tag is not signed or the signature is bad.

Synopsis

git verify-tag [-v | --verbose] [--raw] <tag>...
[ ] optional| or<arg> placeholder... repeatable--flag option

Examples

Verify a release

git verify-tag v1.0

Checks the tag signature.

Workflow Examples

1
git fetch --tags

Get the tags

2
git verify-tag v2.0

Check the signature

Troubleshooting

error: no signature found

Cause: The tag is not signed

Ask for signed tags (git tag -s)

Tips & Pitfalls

Best Practices

  • ✓Publish your public key where users can find it.

Common Mistakes

  • ✗Verifying a lightweight tag — only annotated, signed tags carry signatures.

FAQ

A:

Yes, when the key is registered on the account.