Installation
Global npm install on Windows, Linux, and macOS.
npm sync: v... • updated ...
npm install -g gemit-cli
gemit
AI CLI for Git
It suggests commits, branch names, PR text, branch summaries, and changelogs with confirmation before running Git commands.
Global npm install on Windows, Linux, and macOS.
npm sync: v... • updated ...
npm install -g gemit-cli
gemit init.gemit init
gemit doctor
Load order
.env global.Global path on Windows: %APPDATA%\gemit\.env
Supported variables
LLM_PROVIDER (google, openai, anthropic)LLM_MODELGOOGLE_API_KEY (or GEMINI_API_KEY)OPENAI_API_KEYANTHROPIC_API_KEYinit defaults
google -> gemini-2.5-flashopenai -> gpt-4o-minianthropic -> claude-3-5-sonnet-latest-v, --version
Show version.
-h, --help
General help.
help [command]
Help for a specific command.
gemit
Shortcut to the commit flow using current staged changes.
gemit commit [--all] [--check]
Flow: stage -> summary -> AI suggestion -> optional edit -> confirmation -> git commit -m. Then it asks whether to push.
- --all: runs git add . first.
- --check: runs npm run lint --if-present and npm run test --if-present.
gemit branch <description...>
Generates a branch in <type>/<kebab-case> (feat, fix, chore, docs, refactor, test) and asks whether to create it with git checkout -b.
gemit pr
Generates a markdown PR title and description from branch commits.
gemit log
Summarizes what was done in the current branch.
gemit changelog [name]
Generates a file in changelogs/<name>-YYYY-MM-DD.md using recent commit history.
- -c, --commits <number>: number of recent commits to include (default: 20, max: 200).
gemit init
Configures provider/model/key in the global .env.
gemit doctor
Validates current config and reports missing values.
gemit update
Forces an update check and installs the latest global version when available.
gemit add [--all] [--check]
Stages changes and enters the same commit suggestion flow. In practice, this flow requires --all.
- --all: required; runs git add ..
- --check: runs lint and test with --if-present.
LLM_PROVIDER="google"
LLM_MODEL="gemini-2.5-flash"
GOOGLE_API_KEY=""
GEMINI_API_KEY=""
OPENAI_API_KEY=""
ANTHROPIC_API_KEY=""
gemit commit --check runs npm run lint --if-present.gemit commit --check runs npm run test --if-present.--if-present.Join the Discord community to share improvements, ask questions, and follow gemit updates.
Join Discord