MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Tagging Milestones and Software Releases with git tag0%
Study Materials
Git & GitHub BasicsProgress 0%
1.1What is Version Control? (Local, Centralized vs Distributed VCS)1.2Why Git? History, Architecture & Core Benefits1.3The Three Trees: Working Directory, Staging Area & Git Repository1.4Installing Git and Initial Configuration (git config user.name / email)
7.1Shelving Changes Temporarily with git stash (save, pop, apply, drop)7.2Undoing Changes Safely: git restore, git reset, and git revert7.3Rebasing Branches: Linear History with git rebase vs git merge7.4Tagging Milestones and Software Releases with git tag
HomeTutorialsGit & GitHub BasicsTagging Milestones and Software Releases with git tag
Crafting a Professional README.md with Badges, Demos & Markdown

Tagging Milestones and Software Releases with git tag

Beginner12 min read•Updated: 2026-09-15•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

In software engineering, development moves continuously, but users and deployments interact with specific milestones: v1.0.0, v2.1.4-beta, etc. Git provides tags to mark specific points in repository history as important release milestones.


1. What is a Git Tag?

While a branch is a moving pointer that advances every time you make a commit, a tag is an immutable, permanent snapshot pointer. Once placed on a commit, a tag never moves.

1Branches Move:
2(C1) ---> (C2) ---> (C3) [main advances...]
3 
4Tags Stay Fixed:
5 ^
6 |
7 [v1.0.0] <--- Fixed permanent milestone!

2. The Two Types of Git Tags

Git supports two distinct types of tags:

AttributeLightweight TagAnnotated Tag (Recommended)
What is it?Just a simple bookmark pointer to a commit hashA full Git object stored in the database with checksum
MetadataNoneStores tagger name, email, timestamp, and release message
GPG SigningCannot be cryptographically signedCan be signed with GPG keys for verified releases
Use CaseQuick local private bookmarksOfficial software versions, production deployments

3. Creating and Managing Tags

A. Creating an Annotated Tag (-a)

Always use annotated tags for official releases:

1git tag -a v1.0.0 -m "Release version 1.0.0: Initial public launch with auth & payments"

B. Creating a Lightweight Tag

1git tag v1.0.0-lw

C. Tagging a Past Commit

You don't have to be standing on a commit to tag it; just provide its hash:

1git tag -a v0.9.0 4a2c91d -m "Release version 0.9.0 beta"

D. Listing All Tags

1git tag
2 
3# Filter tags by pattern
4git tag -l "v1.*"

E. Viewing Tag Metadata (git show)

1git show v1.0.0

Output:

1tag v1.0.0
2Tagger: Sumit Sharma <sumit@mskinstitute.com>
3Date: Mon Sep 15 11:45:00 2026 +0530
4 
5Release version 1.0.0: Initial public launch with auth & payments
6 
7commit 7b3f81e28d4c5a9b0c2d4e6f8a0b1c2d3e4f5a6b
8Author: Sumit Sharma <sumit@mskinstitute.com>
9...

4. Pushing Tags to GitHub

Important Warning
[!WARNING] By default, running git push does NOT transfer tags to remote servers! You must explicitly push tags:
1# Push a single specific tag
2git push origin v1.0.0
3 
4# Or push ALL local tags at once
5git push origin --tags

Releases on GitHub:

When you push tags like v1.0.0 to GitHub, GitHub automatically:

  1. 1
    Surfaces them under the Releases / Tags tab.
  2. 2
    Bundles the codebase into downloadable .zip and .tar.gz source code archives.
  3. 3
    Allows maintainers to attach compiled binaries, release notes, and changelogs.

Deleting a Tag:

1# Delete local tag
2git tag -d v1.0.0
3 
4# Delete remote tag on GitHub
5git push origin --delete v1.0.0

Interactive Quiz• Knowledge Check

Practice Quiz

Question 1
What is the fundamental difference between a Git branch and a Git tag?
Question 2
Why are Annotated Tags (git tag -a) preferred over Lightweight Tags for official releases?
Question 3
If you run git push origin main, are your newly created local tags automatically pushed to GitHub?
Question 4
How can you tag an older commit that occurred 3 days ago?
Question 5
What command deletes a remote tag named v1.2.0 from GitHub?
Next Lesson

Crafting a Professional README.md with Badges, Demos & Markdown

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Rebasing Branches: Linear History with git rebase vs git mergeCrafting a Professional README.md with Badges, Demos & Markdown

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

Mentor-Led Practical Training

Master Git & GitHub Basics with Hands-On Projects

Practice in live mentor-led sessions with real projects, mock tests, and verifiable certification at MSK Institute.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext