← Git from Scratch Lesson 14 of 17 · 10 XP

Tags: marking versions

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

A tag is a permanent label on a specific commit. Unlike a branch, it never moves. Tags mark releases:

git tag v1.0                       # a label on the current commit
git tag -a v1.1 -m "C course"      # an annotated tag with a description (on your own computer)
git tag                            # list of tags
git push origin v1.0               # tags are sent to GitHub separately

The usual numbering scheme is semantic versioning, MAJOR.MINOR.PATCH:

  • PATCH (1.0.1) — fixes that don't break anything;
  • MINOR (1.1.0) — new features, backward compatible;
  • MAJOR (2.0.0) — incompatible changes.

On GitHub you make a Release from a tag: a page with a description of the changes and files to download. That's how both games and programs are released.

Task. Put the tag v1.0 on the current commit.

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.