TOPIC GIT
Tags & Releases pinning a moment in history
IN 10 SECONDS
A git tag is an immutable reference pointer pointing to a specific commit. Unlike branches which move as you commit, tags stay pinned to mark release versions (v1.0.0).
GOTCHA Lightweight tags are just pointers. Annotated tags (git tag -a) store descriptions, timestamps, and authors, making them ideal for release management.
HOW A RELEASE TAG WORKS
01 Stable commit final release commits are merged to master branch.
02 Tag create runs git tag v1.0.0 COMMIT_SHA.
03 Push tags pushes tags up to remote repo via git push --tags.
04 CI Trigger GitHub Actions detects tag push, automatically building release assets.
POKE IT YOURSELF
git tag — list all tags in the repository
git push origin v1.0.0 — push a tag to the remote repository
Drill this topic →
~60 sec read