@konstantin-bs/ai-git-commit
v1.3.0
Published
  
Installation
npm install -g @konstantin-bs/ai-git-commitSetup
Run the init command and paste your Gemini API key when prompted:
ai-commit initUsage
Stage your changes, then run:
git add .
ai-commitThe generated message is printed to the terminal — copy and use it:
git commit -m "your generated message here"To skip the manual step and commit automatically:
ai-commit --autoTo add, commit and push in one command:
ai-commit --pushTo list all existing commands:
ai-commit --helpLanguage
By default commit messages are generated in English. To change the language:
ai-commit langSupported languages: en de es fr zh pt ja
How it works
- Reads your staged diff via
git diff --cached - Sends it to Gemini 2.5 Flash with a prompt to generate a concise commit message
- Prints the result
License
MIT
