Generate high-quality, conventional commit messages with the power of Google's Gemini models, directly within VS Code. This extension analyzes your staged changes and suggests a commit message that follows the Conventional Commits specification.
""
- AI-Powered Commit Messages: Uses Gemini to analyze your staged
git diffand generate a relevant and concise commit message. - Conventional Commits Standard: Enforces the Conventional Commits standard for clean and readable Git history.
- Simple Workflow: A single click on the Source Control panel generates your commit message.
- Model Selection: Choose the Gemini model that best fits your needs, from the fastest flash models to the most powerful pro models, via a simple dropdown in the settings.
- A valid Google Gemini API Key.
- Visit Google AI Studio.
- Click "Create API key" and copy your new key.
- In VS Code, open Settings (
Ctrl+,orCmd+,). - Search for "Gemini Commit Message".
- In the "Api Key" field, paste the Gemini API key you just copied.
- (Optional) Use the "Model" dropdown to select the Gemini model you wish to use. The default is
gemini-2.5-flash-lite.
- Open a project that is a Git repository.
- Make changes to your code.
- Go to the Source Control view in VS Code (the Git icon).
- Stage the files you want to include in the commit by clicking the
+icon next to them. - Click the (message) icon in the Source Control title bar.
- The extension will analyze your changes and populate the commit message box with a suggestion from Gemini.
This extension contributes the following settings:
gemini-commit-message.apiKey: Your Gemini API Key for authentication.gemini-commit-message.model: The specific Gemini model to use for generation (e.g.,gemini-2.5-flash-lite).
No known issues at this time. Please report any bugs or feature requests on the project's GitHub repository.
- Initial release of Gemini Commit Message.
- Generate commit messages from staged changes.
- Support for model selection and API key configuration.
Enjoy a more productive commit workflow!
