@cptwaheed/ez-git-commit
v0.1.0
Published
Interactive CLI for generating conventional commit messages based on staged changes
Maintainers
Readme
Git Commit Helper
Interactive CLI tool for generating conventional commit messages based on staged changes.
Features
- 🎯 Analyzes staged git changes
- 📝 Generates 3 conventional commit message options
- 🎨 Interactive selection with arrow keys
- ✅ Follows conventional commits format
- 🚀 No external AI API needed
Installation
Local Development
npm install
npm run devGlobal Installation
npm install -g .Then use anywhere:
git-cmUsage
- Stage your changes:
git add <files>- Run the tool:
npm run dev
# or if installed globally:
git-cmSelect a commit message with arrow keys and press Enter
Confirm the commit
Conventional Commit Types
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style changes (formatting, etc.)refactor: Code refactoringperf: Performance improvementstest: Adding or updating testsbuild: Build system changesci: CI/CD changeschore: Other changes
Example
$ git-cm
🚀 Git Commit Helper
✓ Found 2 staged file(s)
Staged files:
~ src/index.ts (+15/-3)
✓ src/types.ts (+8/-0)
? Select a commit message:
❯ [1] feat: add user authentication
[2] feat(auth): add user authentication (with body)
[3] update 2 files (2 modified)
? Commit with this message?
feat: add user authentication
✓ Commit created successfully!Development
# Install dependencies
npm install
# Run in dev mode
npm run dev
# Build
npm run build
# Run built version
npm startLicense
MIT
