Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ai_Git_CommitNew to Visual Studio Code? Get it now.
Ai_Git_Commit

Ai_Git_Commit

ASHISH

|
2 installs
| (1) | Free
Generate smart commit messages using free AI models (Gemini + local fallback).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:

  1. Open a VS Code workspace.
  2. Run the command AI: Generate Commit Message.
  3. AI generates a commit message based on your staged changes.
  4. Review or edit the suggested message.
  5. 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:

  • Extension Guidelines

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.

For More Information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy using AI Git Commit!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft