Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Auto AI Git Commit and PushNew to Visual Studio Code? Get it now.
Auto AI Git Commit and Push

Auto AI Git Commit and Push

DreamersDesire

|
28 installs
| (1) | Free
A Visual Studio Code extension for automatically stages, commits, and pushes code changes after specific delay (60s) of inactivity. Commit messages are generated using Google's Gemini AI based on the code diff. Ideal for solo developers or rapid prototyping.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto AI Git Commit and Push

Automatically stage, commit, and optionally push your code using AI-generated commit messages powered by Google Gemini. This extension helps automate Git hygiene for solo developers, prototypers, or anyone who wants quick commits without switching context.

🔽 Quick Download

Recommended

Just search Auto AI Git Commit in vscode extension searchbar and install the extension! Don't forget to verify the publisher name DreamersDesire 🤭

Manual Install

Grab the latest .vsix package directly from the GitHub release:

👉 Download Auto AI Git Commit and Push

✨ Features

  • ⏳ Auto Commit on Inactivity: Automatically commits code after a period of inactivity (default 60 seconds, minimum 30).
  • 🤖 Gemini AI-Powered Commit Messages: Generate meaningful and professional commit messages from code diffs.
  • 💬 Manual Controls via Command Palette:
    • Commit now
    • Stop auto commit
    • Restart the extension
    • Open Settings
  • 📁 Works only in Git projects: Automatically detects if a .git folder is present.
  • 🛡️ Fallback Message: Uses a default commit message if AI fails or no key is set.

📦 Requirements

  • Git must be installed and available in your terminal (git --version).
  • A valid Gemini API Key from Google AI Studio to enable AI commit messages.
  • A Git-initialized project (must contain a .git folder).
  • Internet access to connect to Google's API.

🚀 Usage

Once you've installed the .vsix extension in VS Code, the extension works quietly in the background. Here's how to get started:

  1. Install the Extension:

    • Open VS Code.
    • Press Ctrl+Shift+P and select Extensions: Install from VSIX....
    • Choose the .vsix file you downloaded.
  2. Configure Gemini API Key:

    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
    • Run the command: Auto Git Commit: Open Settings.
    • This will take you directly to the extension's configuration panel.
    • Paste your Google Gemini API key into the Gemini API Key field.
  3. Auto Commit in Action:

    • After 60 seconds of inactivity in a Git-tracked project, the extension:
      • Detects staged changes.
      • Uses Gemini AI to generate a meaningful commit message.
      • Automatically commits and pushes your changes.
  4. Available Commands (via Command Palette Ctrl+Shift+P):

    • Auto Git Commit: Commit – Triggers commit immediately.
    • Auto Git Commit: Stop – Disables auto-commits.
    • Auto Git Commit: Restart – Restarts the auto-commit timer.
    • Auto Git Commit: Open Settings – Opens configuration options.

💡 Tip: You can adjust the delay time, default fallback commit message, and more in the extension settings.

⚙️ Extension Settings

This extension contributes the following settings:

  • autoAiGitCommit.commitDelay
    Type: number – Delay (in seconds) between changes and auto-commit. Must be at least 30.
    Default: 60

  • autoAiGitCommit.defaultCommitMessage
    Type: string – Used when Gemini fails to generate a commit message.
    Default: "Updated Changes"

  • autoAiGitCommit.geminiApiKey
    Type: string – Your Gemini API key. Get one at Google AI Studio.

🐞 Known Issues

  • The "Push" feature is not implemented yet and is marked as "Coming Soon".
  • Works only with one workspace folder. Multi-root workspaces are not yet supported.
  • Some rare Gemini API responses may return improperly formatted messages.

❓ FAQ

Q: Does this push to GitHub?
A: Not yet. The enablePush feature is planned and will be released soon.

Q: Is my API key safe?
A: Your Gemini API key is stored in your local VS Code settings and is never transmitted anywhere other than Google's API.

Q: Will this work with private Git repositories?
A: Yes. As long as the workspace contains a .git folder, it will function.

Q: What happens if there's no diff to commit?
A: Nothing will be committed, and no message is shown unless triggered manually.

📝 Release Notes

1.0.0

🎉 Initial release of Auto AI Git Commit and Push.

  • Auto-detect .git projects
  • Auto-commit after delay
  • Gemini-generated commit messages
  • Manual commit, stop, restart, openSettings commands
  • Minimum delay enforcement (30 seconds)
  • Graceful fallback commit messaging

For more information

  • Google Gemini API

Enjoy Auto AI Git Commit and Push!
Made with 💡 by DreamersDesire
GitHub: https://github.com/jahid404

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