What is a Git Tag?
Tags are used to mark specific points in history as important — typically used to mark release versions.
Create a Tag
git tag v1.0.0
This creates a lightweight tag for the latest commit.
Create an Annotated Tag
git tag -a v1.0.0 -m "Version 1.0.0"
Annotated tags include metadata like the tagger's name, email, and date.
List Tags
git tag
Displays all tags in the repository.
View Tag Details
git show v1.0.0
Displays the details of a specific tag.
Push Tags to GitHub
git push origin v1.0.0
Push a single tag to GitHub.
git push origin --tags
Push all local tags to GitHub.