Skip to content
Home Tutorials Roadmaps Courses
Log in Join free
Tutorials Git Git Tags
Git Beginner FREE

Git Tags

Lesson 1 of 17 Beginner Interactive

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.

Interview Questions

It is a fundamental Git feature.