Stop writing "fix stuff" and "update code" commits. Let AI do it for you.
Generate meaningful commit messages in seconds by analyzing your code changes with AI
Every developer has written commits like these:
git commit -m "fix"
git commit -m "update"
git commit -m "changes"
git commit -m "asdfasdf"
git commit -m "please work this time"We know we should write better commits. But it's tedious, time-consuming, and let's be honest — we just want to push our code.
Git Commit AI analyzes your staged changes and generates professional commit messages automatically. One click. Done.
git commit -m "fix stuff"feat(auth): implement OAuth2 login flow with Google provider
Added GoogleStrategy configuration with passport.js,
including session management and secure token handling.Search "Git Commit AI" in VS Code Extensions
git clone https://github.com/yourusername/git-commit-ai.git
cd git-commit-ai
npm install
npm run compile
code --install-extension git-commit-ai-*.vsixReal example:
- Made changes to authentication system
- Staged changes: git add src/auth.ts
- Clicked ✨ sparkle icon
- Got: feat(auth): add JWT token validation middleware
Time saved: 2 minutes per commit × 50 commits/week = 100 minutes/week 🎉
- OpenAI (GPT-4, GPT-3.5) — Fast and accurate
- Anthropic (Claude) — Advanced reasoning
- Ollama (Local) — FREE and private, no API key needed!
- Conventional Commits — feat(scope): description
- Simple — Plain, clear messages
- Detailed — Multi-line with context
- Analyzes your code diff
- Learns from your recent commits
- Understands your coding patterns
- Suggests appropriate commit types
- Sparkle icon in Source Control panel
- Or use Command Palette
- Works with any Git workflow
- Review before committing
- API keys stored in VS Code settings
- Or use local Ollama (100% offline)
- No code sent to external servers (except chosen AI provider)
No API key needed! 100% free and runs locally.
# Install Ollama
winget install Ollama.Ollama
# Download AI model
ollama pull llama3.2
# Configure extension (in VS Code)
Ctrl+Shift+P → "Configure Git Commit AI"
→ Select "Ollama"# Get API key from https://platform.openai.com
# Configure extension
Ctrl+Shift+P → "Configure Git Commit AI"
→ Select "OpenAI"
→ Enter your API keyCost: ~$0.01-$0.02 per commit
# Get API key from https://console.anthropic.com
# Configure extension
Ctrl+Shift+P → "Configure Git Commit AI"
→ Select "Anthropic"
→ Enter your API key- Make your code changes
- Stage them: git add .or use VS Code UI
- Click the ✨ sparkle icon in Source Control panel
- Review the generated message
- Commit!
Press Ctrl+Shift+P and type:
- Generate Commit Message— Generate AI commit
- Configure Git Commit AI— Setup/change settings
Add to keybindings.json:
{
  "key": "ctrl+alt+g",
  "command": "git-commit-ai.generateCommit"
}All settings available in VS Code settings (Ctrl+,):
{
  "gitCommitAI.provider": "ollama",          // "openai" | "anthropic" | "ollama"
  "gitCommitAI.model": "llama3.2",           // Model name
  "gitCommitAI.commitStyle": "conventional", // "conventional" | "simple" | "detailed"
  "gitCommitAI.includeDescription": false,   // Multi-line commits
  "gitCommitAI.maxTokens": 150               // Response length
}| Feature | Git Commit AI | Manual Writing | Other Tools | 
|---|---|---|---|
| Speed | ⚡ 5 seconds | 🐢 2-3 minutes | ⚡ 10-30 seconds | 
| Quality | ✅ Consistent | ✅ Good | |
| Cost | 💰 Free option | ✅ Free | 💰 Subscription | 
| Privacy | ✅ Local option | ✅ Private | |
| Context-Aware | ✅ Yes | ✅ Yes | |
| VS Code Integration | ✅ Native | N/A | 
+ function loginWithGoogle(credentials) {
+   return oauthClient.authenticate(credentials);
+ }Generated: feat(auth): add Google OAuth login function
- if (user == null) return;
+ if (user === null || user === undefined) return;Generated: fix(validation): use strict equality for null checks
+ # API Documentation
+ This API provides user authentication endpoints.Generated: docs(api): add authentication API documentation
- function calc(x, y) { return x + y; }
+ const add = (x, y) => x + y;Generated: refactor: convert calc function to arrow function syntax
We love contributions! Here's how to get started:
- Fork the repo
- Create a branch: git checkout -b feature/amazing-feature
- Make changes and test
- Commit: Let the AI write your commit message! 😉
- Push: git push origin feature/amazing-feature
- Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
Solution: Stage your changes first with git add .
Solution: Run Configure Git Commit AI command
Solution: Make sure Ollama is running: ollama serve
Solution: Ollama runs locally on CPU. First run is slower. Consider using OpenAI for faster results.
Solution: Restart VS Code or press F5 to debug
"I used to spend 10-15 minutes per day just writing commit messages. Now it's automatic!" — Sarah, Frontend Developer
"The Ollama integration is genius. Free AI on my machine!" — Alex, Open Source Contributor
"Finally, my git log is readable. My team is happy." — Mike, Tech Lead
- OpenAI GPT-4 integration
- Anthropic Claude support
- Local Ollama support
- Conventional Commits format
- Custom prompt templates
- Team shared presets
- Multi-language commit messages
- Commit history learning
- GitHub Copilot integration
- Emoji support 🎉
MIT License — see LICENSE file for details.
- Built with VS Code Extension API
- Powered by OpenAI, Anthropic, Ollama
- Inspired by the dev community's need for better commit messages
Made with ❤️ for developers who care about git history
