GemCommit is a VS Code extension that generates commit messages automatically using Google Gemini AI, following the Conventional Commits specification.
- 🔥 AI-powered commit message generation based on staged changes.
- 📝 Follows Conventional Commits (
feat
,fix
,docs
,chore
, etc.). - ⚡ One-click commit message insertion in the Source Control input.
- 🖊️ Detailed commit messages with body and breaking changes support.
- 📜 Commit history tracking for easy reuse of previous messages.
- 🌐 Supports customization of AI model and API key in settings.
- 🎨 Seamless integration with VS Code's Source Control UI.
![GemCommit in Action]
- VS Code
^1.97.0
- Google Gemini AI API Key (see Setup)
- Get a Google Gemini API Key from Google AI Studio.
- Open VS Code Settings (
Ctrl + ,
orCmd + ,
on Mac). - Search for
GemCommit
. - Add your API Key in
gemcommit.apiKey
.
Setting | Description |
---|---|
gemcommit.apiKey |
API key for Google Gemini AI. |
gemcommit.model |
AI model for generating commit messages. |
gemcommit.customPrompt |
Custom prompt template for commit messages. |
gemcommit.promptBeforeInsert |
Enables review before inserting commit messages. |
gemcommit.maxHistorySize |
Maximum number of commit messages stored in history. |
gemcommit.includeProjectContext |
Includes project details (e.g., package.json) in AI prompts. |
gemcommit.commitLanguage |
Language for commit messages (e.g., english, spanish). |
Command | Description |
---|---|
GemCommit: Generate Commit Message |
Generates a Conventional Commit message. |
GemCommit: Generate Detailed Commit Message |
Generates a detailed commit with body & scope. |
GemCommit: Show Commit History |
Displays previous commit messages for reuse. |
- No known issues. Feel free to report any here.
- AI-powered commit message generation.
- VS Code Source Control integration.
- Conventional Commits support.
- Commit history tracking.
- Review before inserting commit messages.
- Support for multiple languages.
Make sure to follow the official VS Code Extension Guidelines for best practices.
Contributions are welcome! Fork the repo and submit a PR here.
🔗 More Information: