Tags and Release Names in Git

A tag gives a stable conventional name to a release point. An annotated tag is a separate object carrying metadata and possibly a signature.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two release points
  2. Keep build inputs identified too
  3. Match one release label to its exact snapshot
  4. Verify source and artifact identity independently

Trace two release points

A project can tag one commit as v1 and a later commit as v2 while its active branch continues to move. Checking which snapshot a tag names helps reproduce a release. See a branch as a moving reference.

Keep build inputs identified too

A source tag identifies the source snapshot, but dependency and build settings also affect binaries. Capture them as part of reproducing a program run or release process.[1]

Match one release label to its exact snapshot

A branch may advance from commit C to D after version 1.2 is published. A stable tag at C keeps giving readers the source used for that release. An annotated tag can also carry metadata and a signature if the project uses them. See identifying deployed versions.

Release tag v1.2 → C
Development branch later → D
A build by branch name may produce D
A release check should resolve the tag and verify the recorded digest

Verify source and artifact identity independently

A correct tag alone does not prove an existing binary came from that snapshot. A build record and artifact digest can tie the release to inputs and output. Compare both during reproduction.

References

  1. Scott Chacon and Ben Straub, Pro Git ↩