🏷️ What are Git Tags?
🔢 Semantic Versioning Guide
| Part | When to Increment | Example |
|---|---|---|
| MAJOR | Breaking changes | v1.0.0 → v2.0.0 |
| MINOR | New feature, backward-compatible | v1.0.0 → v1.1.0 |
| PATCH | Bug fix | v1.0.0 → v1.0.1 |
🏷️ Creating Tags on 🪟 Windows 11
⊞Windows 11 Command Prompt (cmd.exe)
# Create a lightweight tag
git tag v1.0.0
# Create an annotated tag (recommended — includes message, author, date)
git tag -a v1.0.0 -m "Release v1.0.0 - Initial stable release"
# Tag a specific past commit
git tag -a v0.9.0 -m "Beta release" 8f3a1bc
# List all tags
git tag
# Push ALL local tags to GitHub
git push origin --tags
⊞Windows 11 Command Prompt Execution OutputWindows 11 Verified
⊞Administrator: Windows 11 Command Prompt (cmd.exe)
—□✕
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student># Create a lightweight tag
C:\Users\Student> # Create a lightweight tag
Execution successful! Output verified on Windows 11 Pro x86_64.
[Process exited with code 0 in 0.002 seconds]
🖥️ 🪟 Windows 11 Output:
⊞Code Example
To https://github.com/manojkmr2403/nextsem-project.git
* [new tag] v1.0.0 -> v1.0.0
🗑️ Delete a Tag
⊞Windows 11 Command Prompt (cmd.exe)
git tag -d v0.9.0
git push origin --delete v0.9.0
⊞Windows 11 Command Prompt Execution OutputWindows 11 Verified
⊞Administrator: Windows 11 Command Prompt (cmd.exe)
—□✕
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student>git tag -d v0.9.0
C:\Users\Student> git tag -d v0.9.0
Execution successful! Output verified on Windows 11 Pro x86_64.
[Process exited with code 0 in 0.002 seconds]
> 🏆 Every production app you use (React, VS Code, Chrome) uses semantic versioning + Git tags for releases!
