Use it when configuring, checking or troubleshooting Tag in Git.
Tag
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.
1. Tags mark releases.
2. Annotated (and signed) tags.
3. Semantic versioning.
4. Pin modules/roles to tags.
5. Don't move tags.
commit → tag → release
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
git tag -a v1.2.0 -m 'release'— annotated taggit push origin v1.2.0— publishgit 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
| Use | Example |
|---|---|
| Release versions | Pin Ansible roles or Terraform modules to v1.4.0 |
| Trigger CI/CD | on: push: tags: ['v*'] |
| Rollback reference | Redeploy the previous tag |
Do not move tags after publishing; consumers expect a tag to always mean the same commit.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
Tag Git boundary map
Fast local-state, history/ref, remote and downstream proof boundaries for Tag.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Local state | Repository, HEAD, worktree/index and commit IDs are explicit | Wrong repo/ref, hidden staged/untracked state or mutable-name ambiguity |
| History / refs | Ancestry and branch/tag movement match intent | Unexpected rewrite, stale tracking ref or unclear merge base |
| Remote sync | URL/refspec, auth and remote read-back match expected commits | Local assumptions, rejection, stale fetch or unsafe force update |
| Downstream proof | Build/reconciliation/target is verified independently | Push/tag/merge success treated as deployment success |
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.