@devjinung41/gemini-commit-generator
v2.1.2
Published
AI-powered git commit message generator using Gemini CLI
Maintainers
Readme
gemini-commit-generator 🤖
gcg is a cross-platform AI commit assistant for git repositories. It reads your staged changes, recent commit history, and current branch context, then drafts a commit message with the Gemini CLI.
English | 한국어
Prerequisites
- Node.js
18+ - Gemini CLI installed and available as
gemini - Gemini CLI authentication completed once in your terminal
Install
npm install -g @devjinung41/gemini-commit-generatorFor local development from this repository:
npm linkQuick Start
- Stage the files you want in the commit.
git add path/to/file- Run
gcginside the git repository.
gcg- If no default language is saved yet, choose a language.
You can save one for later with:
gcg config- Optionally add extra context, then select one of:
CommitRegenerateEditto open your editor and commit immediately if the edited message is validCancel
What To Expect
gcguses staged changes only by default.- You can save a default language in
~/.config/gcg/settings.jsonwithgcg config. - Use
gcg helpfor a short command summary. - If you want it to stage everything automatically, create
.gcgrc.jsonat the git root and setautoStagetotrue. - Branch safety checks are enabled by default.
- If Gemini returns unusable output,
gcgretries once automatically.
Docs
License
MIT
