Git AI Commits - Smart Commit Messages with AI
Git AI Commits supercharges your Git workflow by automatically generating intelligent commit messages based on your staged changes. Stop wasting time crafting the perfect commit message - let AI do the work for you!
Key Features
AI-Powered Commit Suggestions
- Get 5 intelligent commit suggestions based on your staged changes
- Tell the AI what aspect of your changes to emphasize with custom commit ideas
- Works with multiple AI providers: GitHub Copilot (no key needed), Claude, Gemini/Gemma, Groq (free tier), OpenRouter (free models) and Ollama (100% local)
Native Git Integration
- Sparkle button right in the Source Control panel
- Selected message lands in the commit input box — review and edit before committing
- Multi-root workspaces supported: status bar shows the active repository, click to switch
Commit History and Analytics
- View complete history of all generated commit suggestions
- Track which commits were actually committed vs copied
- Identify breaking changes across your workflow
- Statistics dashboard with branch-level insights
- Export or review past diffs from the history viewer
Enhanced Privacy Options
- Three levels of code obfuscation (Low, Medium, High) to protect sensitive information
- Custom word obfuscation: define specific keywords to mask before sending to AI
- Higher obfuscation level = more privacy maintained
Global Language Support
- Generate commits in 11 languages: Arabic, Chinese, English, French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish
- Perfect for international teams or writing commits in a non-native language
Commit Convention Support
- Choose your preferred commit style: conventional, Angular (semantic-release compatible), gitmoji, or custom
- Style dimensions: tone (minimal/descriptive), optional commit body, subject length limit
- Ticket prefixing: detects
JIRA-123 in your branch name and prefixes every suggestion automatically
- Learns your repo's style: recent commits are fed to the AI as examples — suggestions match the project's established style out of the box
- commitlint aware: if the repo has a commitlint config, its rules are injected so suggestions pass validation
- Per-project rules: define custom conventions with
.git-ai-commits.rules (highest priority)
Workflow Optimization
- Auto-commit option: automatically commit changes when selecting a suggestion
- Copy to clipboard: easily use suggestions in your manual workflow
- Dynamic prompt updates: receive improved prompts without extension updates
Customization
- Configure your favorite AI assistant for optimal speed/quality balance
- Multiple UI languages: English and Spanish interfaces based on your VSCode settings
AI Provider Comparison
| Provider |
Models |
API key |
Cost |
| GitHub Copilot |
GPT-4o, GPT-4o mini |
None (uses your VS Code session) |
Copilot subscription |
| Claude (Anthropic) |
Haiku 4.5, Sonnet 4.6, Opus 4.8 |
console.anthropic.com |
Pay per use (Haiku is very cheap) |
| Gemini / Gemma |
2.5 Flash, 3 Flash, Gemma 3 |
aistudio.google.com |
Free tier |
| Groq |
Llama 3.3 70B, Llama 3.1 8B |
console.groq.com |
Free tier, very fast |
| OpenRouter |
DeepSeek V3, Llama 3.3 (free) |
openrouter.ai |
Free models |
| Ollama |
Any local model |
None |
Free — runs on your machine, fully private |
Getting Started
Installation
- Open Visual Studio Code
- Go to Extensions (Ctrl+Shift+X)
- Search for git-ai-commits
- Click Install
Basic Usage
- Stage your changes with Git
- Open Command Palette (Ctrl+Shift+P)
- Type "Commit Suggestion" to see available options
- Select from the generated commit suggestions
- Commit automatically or copy to clipboard
Advanced Usage
- Use "Write a Commit Idea" to guide the AI toward specific aspects of your changes
- Configure obfuscation levels in settings for sensitive codebases
- Set your preferred commit convention style
- Check commit history and statistics to track your workflow patterns
Available Commands
- Generate AI-Powered: Commit Suggestions - Get 5 suggestions based on staged changes
- Generate AI-Powered: Write a Commit Idea - Input custom ideas for better suggestions
- Generate AI-Powered: Settings - Configure extension settings
- Generate AI-Powered: Show Commit History - View and manage past suggestions
- Generate AI-Powered: Clear Commit History - Reset history data
- Generate AI-Powered: Show Statistics - View analytics on your commit workflow
Latest Updates (v1.3.0)
- 4 new AI providers: Claude (Anthropic), Groq, OpenRouter and Ollama (local & private)
- Multi-root workspace support with repository picker and status bar HUD
- Native Source Control integration: sparkle button + message written to the commit input
- Copilot via the official Language Model API — more reliable auth
- Redesigned settings: grouped sections with per-model API key hints and links
- New commit styles & dimensions: Angular convention, ticket prefixing from branch, repo-style learning, commitlint awareness, tone/body/length control
- Fixed Gemini truncated responses and Gemma failures; fixed
autoCommit
See the full CHANGELOG.
Contributing
Have ideas to make this extension better? Contributions are welcome! Open an issue or submit a pull request with your improvements.
License
Distributed under the MIT License. See LICENSE for more details.
| |