MEPX
Chapter 13 of 14All chapters

Chapter 13 of 14

Tags and releases

Marking a commit worth naming.

Tagging

A tag is a label on one commit that does not move. git tag -a v1.0 -m "first release" creates an annotated tag with an author and a date, which is the kind to use for releases.

  • Tags are not pushed by default: git push origin v1.0 sends one.
  • git describe names the current commit relative to the last tag.

Versions

Most projects follow semantic versioning: major for breaking changes, minor for new features, patch for fixes. The tag is what release tooling and package managers read.