Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Tag

Direct answer

A Git tag is a named reference commonly used to identify a release or milestone; lightweight and annotated tags have different metadata and signing capabilities.

When to use this

Use it when configuring, checking or troubleshooting Tag in Git.

First 30 seconds

1. Tags mark releases.

2. Annotated (and signed) tags.

3. Semantic versioning.

4. Pin modules/roles to tags.

5. Don't move tags.

Operational verification

commit → tag → release

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Git version-control automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformGit version-control automation · Tag owns Git tag/reference semantics. Artifact signing, release packaging and deployment remain with CI/CD/security/target workflows.
Scope / prerequisiteUse it when configuring, checking or troubleshooting Tag in Git.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

tag name → tag object/target commit → local ref → remote tag ref → release pipeline/artifact → deployment verification

Healthy evidence: release tag resolves to an expected immutable commit ID, annotation/signature policy is explicit, remote state matches and artifacts are correlated separately.

Step 2 Failure modes and next checks Narrow the fault

Suspicious evidence: moved tags, local-only tags, trusting names without target IDs or assuming tag creation produced a release artifact.

Step 3 Common mistakes Narrow the fault
  • Moving tags after release.
Step 4 Where it fails Narrow the fault

Where Tag usually goes wrong: tag/ref identity, annotated/signed metadata, immutability expectations and release binding.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Tag exists ≠ release artifact immutable; tags can be moved unless policy prevents it.
  • Tag name ≠ commit ID; the same name can be force-republished to a different object in poorly governed repositories.
  • Annotated tag ≠ trusted signature automatically; annotation and cryptographic verification are separate.
  • Tag pushed ≠ release built or deployed; downstream release workflows remain separate.
Key checks
  • git tag -a v1.2.0 -m 'release' — annotated tag
  • git push origin v1.2.0 — publish
  • git tag -v v1.2.0 — verify signed tag
ReferenceWhat it is1 section · depth on demand

Core model

Distinguish the tag name, tag object when annotated, pointed-to commit, local presence and remote publication. Treat tag naming and immutability as governance conventions rather than automatic Git guarantees.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A tag shows a named Git reference exists at the observed repository state; it does not by itself show immutability, signature trust or release deployment.

In depth

A Git tag is a named reference to a specific commit, typically marking a release (v1.4.0). Annotated tags store a message, author and date and can be signed; lightweight tags are just names.

git tag -a v1.4.0 -m "release 1.4.0"
git push origin v1.4.0
git tag -l 'v1.*'
git checkout v1.4.0
UseExample
Release versionsPin Ansible roles or Terraform modules to v1.4.0
Trigger CI/CDon: push: tags: ['v*']
Rollback referenceRedeploy the previous tag

Do not move tags after publishing; consumers expect a tag to always mean the same commit.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docGit version-control automation current

Authoritative/upstream documentation reviewed for bounded claims in Git > Tag. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://git-scm.com/docs · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
git tagannotated tagrelease tagtag commit
Embedded reference data

Quick lookup tables

Tag Git boundary map

Fast local-state, history/ref, remote and downstream proof boundaries for Tag.

BoundaryHealthy evidenceSuspicious evidence
Local stateRepository, HEAD, worktree/index and commit IDs are explicitWrong repo/ref, hidden staged/untracked state or mutable-name ambiguity
History / refsAncestry and branch/tag movement match intentUnexpected rewrite, stale tracking ref or unclear merge base
Remote syncURL/refspec, auth and remote read-back match expected commitsLocal assumptions, rejection, stale fetch or unsafe force update
Downstream proofBuild/reconciliation/target is verified independentlyPush/tag/merge success treated as deployment success
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For Tag, rely on structured fields and stable IDs (tag/ref identity, annotated/signed metadata, immutability expectations and release binding) rather than text formatted for display.

Confirmation

Confirm action

Continue?