Releases
Changelog, next version, tag and GitHub release from your commits.
gitmit release reads the commits since your last version tag and prepares the next release:
$ gitmit release
4 commits since v1.3.0. Next version: 1.4.0 (minor: 2 features, 1 fix).
v1.4.0
## [1.4.0](https://github.com/acme/app/compare/v1.3.0...v1.4.0) (2026-10-14)
Password resets arrive, along with faster search on large projects.
### Features
- **auth:** add password reset via emailed link (a1b2c3d)
- **search:** index files in the background (d4e5f6a)
### Bug fixes
- **search:** keep the cursor position after refreshing (b7c8d9e)
● What next?
│ ● Release v1.4.0 (update CHANGELOG.md, commit and tag)
│ ○ Change the version
│ ○ Edit the notes in your editor
│ ○ Copy the notes
│ ○ Cancel
- The version follows semantic versioning from your commit types: a breaking change (
feat!:or aBREAKING CHANGE:footer) bumps the major version, afeatthe minor version, andfix,perfor a revert the patch version. Before 1.0.0, breaking changes bump the minor version instead. Override it with--bump major|minor|patchor an exact version, e.g.--bump 1.0.0. - The changelog groups changes into Breaking changes, Features, Bug fixes, Performance, Reverts and Other changes (commits that don't follow Conventional Commits). Docs, tests, chores, refactors, CI and style changes are left out. With a GitHub remote, versions link to the compare view and entries to their commits.
- Highlights. With an AI provider, a short summary of the release goes at the top. The commit messages are secret-scanned first; if anything is found, the highlights are skipped (or redacted with
--redact). Offline, the notes are the changelog alone. - Releasing adds the section to the top of
CHANGELOG.md(creating it if needed), updates theversionin your rootpackage.jsonif it has one, commitschore(release): v1.4.0and creates an annotated tag. Then push it, push and create a GitHub release (needs GitHub's CLI), or keep it local. - The first release uses the version in
package.jsonas is, or 0.1.0. Tags keep the style you already use (v1.2.3or1.2.3). - Safety. gitmit won't release when you have staged changes, uncommitted edits to
CHANGELOG.mdorpackage.json, or when the tag already exists. If a commit hook rejects the release commit, the files are put back as they were.
In scripts and CI:
gitmit release --dry-run # the next version (on stderr) and the notes (on stdout)
gitmit release --yes # update the changelog, commit and tag
gitmit release --yes --push # ...and push the commit and tag
gitmit release --yes --github # ...and create a GitHub release
If nothing since the last tag is a feature, fix or breaking change, gitmit says there's nothing to release. Use --bump patch to release anyway.