Tags mark specific commits as important — usually for releases.
1. Getting Started
What is Git?
2. Branching & Merging
Branches & Merging
5. Tags & Releases
Git Tags
9. Submodules & Subtree
Git Submodules
10. GitHub Actions
GitHub Actions CI/CD
11. Git Worktrees
Git Worktrees
12. Git LFS
Git LFS (Large Files)
Syntax
GIT
git tag v1.0.0 git tag -a v1.0.0 -m "Release 1.0" git push origin v1.0.0 git tag -d v1.0.0
Git Tags
BASH
# Create lightweight tag git tag v1.0.0 # Create annotated tag git tag -a v1.0.0 -m "Version 1.0.0 release" # List tags git tag # Push tags git push origin v1.0.0 git push origin --tags # Checkout tag git checkout v1.0.0
Practice
1
Exercise
Practice this concept.
Answer
Run the commands as shown above.
Quick Quiz
1
What did you learn?
This covers the basics.
Choose an answer to continue.
Interview Questions
It is a fundamental Git feature.