Skip to main content

Sign in

Save your progress and access it from any device.

Or with email

Don't have an account?

Privacy policy

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.

MAJOR
v2.0.0

Incompatible change with the previous version (breaking change)

MINOR
v1.3.0

New feature compatible with the previous version

PATCH
v1.2.5

Bug 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.0

Just a name pointing to a commit. No metadata (author, date, message). Useful for temporary markers.

Recommended

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

A

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