AI Git Commit
Created by Ashish Masih, an India-based developer and a 3rd-year college student at Sardar Beant Singh State University.
Generate smart Git commit messages automatically using free AI models (Gemini + local fallback).
Features
- Automatically stage changes (
git add . ) and generate commit messages using AI.
- Uses Gemini API (cloud) or a local AI model fallback if no API key is provided.
- Lets users review and edit the AI-generated commit message before committing.
- Supports JavaScript projects out of the box.
- Works seamlessly on Windows, Linux, and macOS.
Example workflow:
- Open a VS Code workspace.
- Run the command
AI: Generate Commit Message .
- AI generates a commit message based on your staged changes.
- Review or edit the suggested message.
- Commit automatically using Git.
Requirements
Before using this extension, make sure your system has:
Gemini API key:
- Generate your API key from Google AI Studio.
- Add it to your system environment variables as
GEMINI_API_KEY .
Python (3.10+) installed and added to PATH.
Node.js (16+ recommended) installed.
Git installed and available in your system PATH.
The extension uses a local Python script to generate commit messages if no Gemini key is found.
Extension Settings
This extension does not currently add any custom VS Code settings.
Known Issues
- If no changes are staged, the extension will show a warning.
- On first use, ensure Python and Node are installed and accessible via PATH.
- Gemini API requests require an active internet connection.
Release Notes
1.0.0
- Initial release with Gemini + local AI fallback support.
- Automatic
git add . and commit generation.
1.0.1
- Bug fixes and improved diff parsing.
1.1.0
- Added user review prompt before committing AI-generated messages.
Following Extension Guidelines
Ensure that you've read through the extension guidelines and follow best practices:
Working with Markdown
You can author your README using Visual Studio Code. Useful editor keyboard shortcuts:
- Split the editor (
Cmd+\ on macOS or Ctrl+\ on Windows/Linux).
- Toggle preview (
Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows/Linux).
- Press
Ctrl+Space to see a list of Markdown snippets.
Enjoy using AI Git Commit!
| |