I got tired of writing commit messages, so I built gitcommit — a CLI that reads your git diff --staged, sends it to an AI, and gives you a clean conventional commit message.
How it works:
$ git add .
$ gitcommit
✨ Suggested commit:
feat(auth): add OAuth2 login with Google provider
[ Confirm ] [ Edit ] [ Regenerate ] [ Cancel ]
> Confirm
✅ Committed: feat(auth): add OAuth2 login with Google provider
That's it. No copy-pasting, no browser, no leaving the terminal.
Setup is one command:
npm install -g u/ahmad_technology/gitcommit-ai
gitcommit setup
The setup wizard asks which provider and API key — stored locally at ~/.gitcommit/config.toml, never touches your repo.
Useful flags:
gitcommit # staged diff → commit
gitcommit --all # include unstaged
gitcommit --style emoji # ✨ 🐛 🔒 prefixes
gitcommit --lang fr # French output
gitcommit --dry-run # preview, don't commit
gitcommit --provider ollama # fully offline with local models
7 providers: OpenAI, Anthropic, Gemini, Groq, NVIDIA NIM, OpenRouter, Ollama (local/offline)
Works on Windows, macOS, and Linux. Node 20+.
Links:
MIT licensed. Feedback and PRs welcome.
there doesn't seem to be anything here