Version Tagging in Git
From the Git cheat sheet · Tags & Releases · verified Jul 2026
Version Tagging
Mark specific commits as releases or milestones
bash
# List tags
git tag
git tag -l "v1.*" # Pattern matching
# Create tag
git tag v1.0.0
git tag -a v1.0.0 -m "Version 1.0.0" # Annotated
# Tag specific commit
git tag v1.0.0 <commit>
# Push tags
git push origin v1.0.0
git push origin --tags
# Delete tag
git tag -d v1.0.0
git push origin --delete v1.0.0💡 Use annotated tags for releases
✅ Follow semantic versioning (v1.2.3)
📌 Tags don't push by default
⚡ Lightweight tags for temporary marks