Skip to content
BENIBIX Learn

Git Tag

Development🔀 Version ControlBranches and History

Also known as Tag, Release Tag

A fixed name on one commit. It often marks a release, like v1.0.

Think of it like

Think of it like a name tag on a gift. It marks one box so you can find it later.

Example

Lucy tags the commit she ships as v1.0. When a bug report comes in, she checks out v1.0 to see the exact code users have.

Why it matters

Tags tie a version number to the exact code behind it. Bug reports and rollbacks depend on that link.

Definition

A Git tag is a fixed name stuck on one commit. It is usually used to mark a release, like v1.0 or v2.3.1. Unlike a branch, a tag never moves when new commits arrive. You can check out a tag any time to see the code exactly as it was released. Tags must be pushed on their own, because a plain git push does not send them.

Example code

console
$ git tag v1.0
$ git tag
v1.0
The current commit is now named v1.0 for good.

Common mistake

Forgetting to push tags. The tag exists on your computer, but nobody else can see it.

Key takeaways

  1. 1
    Fixed in place. A tag never moves.
  2. 2
    Marks releases. Names like v1.0 or v2.3.1.
  3. 3
    Push it too. Tags are not sent by default.

Compare

Learn it properly