# Git Tag

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

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Tag, Release Tag

## Think of it like

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

## 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

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.

## Example code

```console
$ git tag v1.0
$ git tag
v1.0
```

The current commit is now named v1.0 for good.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Commit](https://learn.benibix.com/term/development/commit)
- [Branch](https://learn.benibix.com/term/development/branch)
- [Git HEAD](https://learn.benibix.com/term/development/head)
- [Git Push](https://learn.benibix.com/term/development/push)

## Told apart from

- [Git Tag vs Branch](https://learn.benibix.com/compare/git-tag-vs-branch): People think a tag is just another kind of branch, since both are names on a commit. A branch moves forward each time you commit on it. A tag never moves, so v1.0 points at the same code years later. Tags also need a push of their own, because a plain git push does not send them.

## Taught in

- [Git Stash and Git Tags](https://learn.benibix.com/learn/development-version-control/git-stash-and-git-tags): Git and GitHub, 8/13

---

Source: https://learn.benibix.com/term/development/git-tag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
