kmmit-cli
v1.0.3
Published
CLI tool for automated git commits and branch naming with GitHub Copilot
Maintainers
Readme
kmit 🚀
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.
✨ Why kmit?
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.
🔑 Keywords Explained
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
📦 Prerequisites
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 --version📥 Installation
Install globally from npm:
npm install -g kmmitVerify installation:
kmit --help🛠 How It Works
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.
▶️ Usage
Run kmit inside a Git repository:
kmit runTypical flow:
- Choose operation (commit / branch / helper)
- Review suggested messages
- Confirm to execute Git commands
🧪 Development
Run locally in dev mode:
npm install
npm run devBuild for production:
npm run build📄 License
MIT License © 2025
🤝 Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you’d like to change.
🌟 Roadmap (Planned)
- GitHub Copilot / AI commit suggestions
- Conventional Commits enforcement
- Config file support (.kmitrc)
- Git hooks integration
Happy committing with kmit 🎉
