Git tag: create and manage versions
Tags mark important points in your project: releases, versions, milestones. Learn how to create, manage and share Git tags.
Semantic Versioning (SemVer)
The most widely used convention for naming version tags.
v2.0.0Incompatible change with the previous version (breaking change)
v1.3.0New feature compatible with the previous version
v1.2.5Bug fix without new features
Git tag in practice
Create, list and push tags.
Create and view tags
Push and delete
Lightweight vs annotated tag
Lightweight tag
git tag v1.0.0Just a name pointing to a commit. No metadata (author, date, message). Useful for temporary markers.
Annotated tag
git tag -a v1.0.0 -m "Release"A full Git object with author, date, message and optional signature. Used for official releases.
Part of the Git Advanced guide
GitQuest is created by Anaïs (nouvelle fenêtre), web developer and head of education, specializing in tech training and digital accessibility.
Questions about git tag
Practice versioning in GitQuest
GitQuest investigations teach you how to manage your project versions like a pro.
Start the investigations