GitHub Releases versus Git Tags
Separate source identity from delivery
A Git tag names an object, usually a commit. An annotated tag is itself an object with metadata. A GitHub Release is a hosted record associated with a tag, with notes and optional downloadable assets. A tag can exist without a release; the Git database does not store the hosted release record. Here the fictional garden project distributes version 1.0.0.
Identify the exact source
In the disposable fixture, main advances after the annotated tag is created. The following read-only commands resolve the tag to a commit and inspect its type. The two commit IDs differ; the tag object type is tag. A release should record the full peeled commit ID rather than rely on a movable branch name.
git rev-parse HEADgit rev-parse "v1.0.0^{commit}"git cat-file -t v1.0.0Release states and assets
A draft is preparation, not ordinary public availability; a prerelease marks a release as not ready for general use. Neither label establishes correctness. GitHub provides source archives for a release tag, which differ from explicitly uploaded build artifacts. The fictional release has tag v1.0.0, commit A, notes and garden.txt. No hosted record is created by the lab. Review access and immutable-release settings for the actual repository before publishing.
Practice and common mistakes
Predict whether moving main changes the already recorded tag. Inspect the exact tagged snapshot and compare it with HEAD. Expected: the tag retains the earlier note. Do not move a shared version tag to fix a release silently; prepare a new version according to the project policy. Summary: tag = source identity; release = distribution metadata; asset = delivered bytes.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
GitHub Releases versus Git Tags — knowledge check
Reason about distribution, integrity and provenance.
What does an annotated tag identify?
Main advances after v1.0.0 is created. What happens to the tag normally?
Where are uploaded GitHub Release notes and assets managed?
What does a prerelease label establish?
Which identifier should a release record preserve for traceability?