kmit is a Git automation CLI that helps developers work faster by suggesting smart branch names, generating meaningful commit messages, and streamlining everyday Git workflows through an interactive terminal experience.
Writing good commit messages and following consistent branch naming is often repetitive and error‑prone. kmit automates these steps so you can focus on coding instead of Git rituals.
These keywords help developers discover kmit on npm and understand its purpose:
- git – Works directly with Git repositories
- commit – Helps generate and manage commit messages
- cli – Command Line Interface tool
- automation – Automates repetitive Git tasks
Before using kmit, ensure you have:
- Node.js ≥ 18
- Git installed and configured
- An existing Git repository
- GitHub Copilot installed and logged in (used for intelligent commit message suggestions)
Check versions:
node -v
git --versionInstall globally from npm:
npm install -g kmmitVerify installation:
kmit --help-
Detects Git Context kmit checks the current repository, branch status, and staged files using
simple-git. -
Interactive Prompts Uses
inquirerto ask questions like:- What are you working on?
- Type of change (feat, fix, chore, etc.)
- Scope or ticket reference
-
Smart Suggestions Based on your inputs and staged changes, kmit suggests:
- Clean branch names
- Well‑structured commit messages
-
Developer in Control You can select, edit, or reject suggestions before committing.
-
Executes Git Commands Once confirmed, kmit runs the appropriate Git commands for you.
Run kmit inside a Git repository:
kmit runTypical flow:
- Choose operation (commit / branch / helper)
- Review suggested messages
- Confirm to execute Git commands
Run locally in dev mode:
npm install
npm run devBuild for production:
npm run buildMIT License © 2025
Pull requests are welcome. For major changes, please open an issue first to discuss what you’d like to change.
- GitHub Copilot / AI commit suggestions
- Conventional Commits enforcement
- Config file support (.kmitrc)
- Git hooks integration
Happy committing with kmit 🎉