Git tags and SemVer: tag releases, generate changelogs

12 steps · about 3 h 45 min · Intermediate

  1. Git - Tagging (doc, Pro Git (git-scm.com), 20 min)

    Start with the official explanation of what a tag is, with lightweight vs annotated tags, and how to list, create and push them.

  2. Git - git-tag Documentation (reference, git-scm.com, 15 min)

    The manual page confirms exactly what annotated tags store and what each flag does, so you can use them with confidence.

  3. Semantic Versioning 2.0.0 (reference, semver.org, 20 min)

    Learn the rules for choosing MAJOR.MINOR.PATCH, the 0.y.z phase and pre-release labels before you pick a tag name.

  4. Tags, releases & semantic versioning (article, gophertrunk.org, 15 min)

    A short bridge that joins tags, SemVer and GitHub Releases, including pushing and deleting tags.

  5. Tutorial: Version Your Project with Semantic Versioning (tutorial, EBRAINS Handbook, 30 min)

    Practise cutting your first version tags in a real repository, using the v prefix convention.

  6. Conventional Commits 1.0.0 (doc, conventionalcommits.org, 20 min)

    Learn the commit format where feat, fix and breaking changes map to MINOR, PATCH and MAJOR, so the history can drive versions.

  7. Keep a Changelog (doc, keepachangelog.com, 15 min)

    See how a human-friendly CHANGELOG.md is structured before you automate one.

  8. git-cliff: Getting Started (doc, git-cliff.org, 20 min)

    Install a changelog generator and produce your first CHANGELOG.md from Conventional Commit history.

  9. git-cliff: Examples (doc, git-cliff.org, 20 min)

    Learn to generate changelogs for unreleased commits, the latest tag or a tag range, such as v1.0.0..v2.0.0.

  10. git-cliff: Initializing (doc, git-cliff.org, 10 min)

    Use the built-in keepachangelog template to join the two earlier ideas: automated output in a familiar format.

  11. Automatically generated release notes - GitHub Docs (doc, GitHub Docs, 20 min)

    Turn a tag into a published GitHub Release with auto-generated notes, and customise them with .github/release.yml.

  12. Release Management: Tags, Semantic Versioning, Changelogs, and Hotfixes (article, blog.amsayed.dev, 20 min)

    Finish with the whole release flow in one place, from tags and changelogs to semantic-release automation and hotfixes.