Skip to content
Home Tutorials Roadmaps Courses Classroom Training Blog
Log in Join free
Git Beginner Free

Git Tags

Lesson 7 of 17 · Tags & Releases 41%
1. Getting Started
What is Git?
2. Branching & Merging
Branches & Merging
3. Stashing & Undoing
Git Stash Undoing Changes
5. Tags & Releases
Git Tags
6. Git Hooks & Config
Git Hooks Git Configuration
9. Submodules & Subtree
Git Submodules
10. GitHub Actions
GitHub Actions CI/CD
11. Git Worktrees
Git Worktrees

Tags mark specific commits as important — usually for releases.

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.

Up next

Git Hooks

Lesson 8 of 17 · Git Hooks & Config