git-autowriter
v0.2.0
Published
CLI to generate conventional-style git commit messages (interactive or auto).
Maintainers
Readme
git-autowriter
A small CLI that generates conventional-style git commit messages — use locally or install globally.
This README is focused on end users who install the package from npm.
Install via npm or run without installing using npx.
Install
Globally (recommended for CLI usage):
npm install -g git-autowriterOr install as a dev dependency in a project:
npm install --save-dev git-autowriterRun temporarily with npx (no install required):
npx git-autowriter --smartQuick Usage
Show help and available flags:
git-autowriter --helpRun the interactive prompt (default):
git-autowriterAuto-generate a commit message (smart mode):
git-autowriter --smartAuto-generate and create a git commit using the generated message:
git-autowriter --smart --commitNotes:
--smartgenerates a message automatically using repository diff heuristics.--commitrunsgit commit -m "<message>"— ensure you are in a git repo and staged changes exist.
Commands and Flags
--help: show help and options--smart: auto-generate a commit message from staged/uncommitted changes--commit: rungit commit -m "<generated message>"
Examples
Print a generated message:
$ git-autowriter --smart
Smart Commit Message:
feat(parser): add support for emoji parsingGenerate and commit:
$ git-autowriter --smart --commit
✔ Commit successfulTroubleshooting
- If
git-autowriteris not found after global install, ensure your npm global bin is onPATH. - If
--commitfails, check that git is installed, you're in a repository, and changes are staged.
License
MIT
