a CLI that helps you write better commit messages
Please consider following this project's author, Sina Bayandorian, and consider starring the project to show your ❤️ and support.
Clone the repository:
git clone https://github.com/sina-byn/gitt.gitInstall dependencies:
cd gitt && npm iBuild:
npm run buildInitialize:
npx gittTo use globally:
npm i -g .Then use wherever you want:
gitt <?commit_type> <?commit_message>? : optional argument
| Commit Type | Description |
|---|---|
| feat | New Feature |
| fix | Fixing Bugs |
| chore | Miscellaneous Changes |
| refactor | Code Refactoring |
| docs | Documentation Updates |
| style | Code Formatting |
| test | Testing Updates |
| perf | Performance Improvements |
| ci | Continuous Integration |
| build | Build System Updates |
| revert | Reverting Changes |
To enable AI-powered commit message typo detection and correction, you need to create a .env file at the root of the repository. This file should contain the following environment variables, based on the .env.example file:
CF_API_KEY=your_cloudflare_ai_worker_api_key
CF_ACCOUNT_ID=your_cloudflare_account_idWhen these environment variables are provided, the AI will automatically check your commit messages for typos and suggest corrections. If you wish to skip this step, use the --no-check flag:
gitt --no-checkIf the environment variables are not provided, the AI-powered check will be skipped by default.
gittgitt featgitt fix "bug fixed"