GIT / A CONCEPT NOTE

Tags & Releases

pinning a moment in history

~60 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

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).

02 / FOLLOW THE MECHANISM

How a release tag works

  1. Stable commit

    final release commits are merged to master branch.

  2. Tag create

    runs git tag v1.0.0 COMMIT_SHA.

  3. Push tags

    pushes tags up to remote repo via git push --tags.

  4. CI Trigger

    GitHub Actions detects tag push, automatically building release assets.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

list all tags in the repository

git tag

EXAMPLE 02 · REFERENCE

push a tag to the remote repository

git push origin v1.0.0

Explore command anatomy in the CLI lab