How to Create and Use Tags in Git (git tag)
git tag marks a specific commit with a fixed, memorable name, most commonly used to mark release versions.
Published September 28, 2026
git tag marks a specific commit with a fixed, memorable name, most commonly used to mark release versions.
Key points
- git tag v1.0.0 creates a lightweight tag pointing at the current commit
- git tag -a v1.0.0 -m "Release 1.0.0" creates an annotated tag with a message, author, and date — the recommended kind for releases
- Tags aren't pushed by default — use git push origin --tags to publish them to the remote
Example
git tag -a v1.0.0 -m "First stable release"