Git
Tags Commands
Mark important points in your repository's history with tags. Learn to create lightweight and annotated tags, manage releases, and use semantic versioning effectively.
9 commands
Pro Tips
Use annotated tags ('git tag -a') for releases - they include metadata like author, date, and message.
Follow semantic versioning (v1.2.3) for release tags: major.minor.patch makes version history clear.
Tags must be pushed explicitly with 'git push --tags' or 'git push origin tag-name'.
Common Mistakes
Avoid moving tags after they've been pushed - other developers may have referenced the old commit.
Deleting remote tags requires 'git push --delete origin tagname' - local deletion doesn't affect remote.