Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git SuggestNew to Visual Studio Code? Get it now.
Git Suggest

Git Suggest

Dhairya Khandwal

|
8 installs
| (0) | Free
AI Suggested git commands
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Suggest

Git Suggest is a VS Code extension that provides AI-powered assistance directly to your Git workflow in the terminal. It analyzes your repository status and changes to suggest the best next command or write commit messages for you.

Features

1. AI Smart Suggestions (git ask ai)

Powered by GitHub Copilot (GPT-4), this mode reads your git status and git diff to understand exactly what you changed.

  • Context Aware: Knows precisely which files you modified.
  • Smart Commits: Generates meaningful commit messages based on your actual code changes.
  • Inline Output: Displays the answer directly in your terminal—no popups or window switching.

2. Fast Rule-Based Suggestions (git ask)

A lightweight, local Python engine that checks for common scenarios.

  • Instant Feedback: Checks for untracked files, staged changes, or divergent branches.
  • Zero Latency: Runs locally without needing an API call.

Requirements

  • VS Code v1.90.0 or higher.
  • Python 3.x installed and added to your system PATH.
  • GitHub Copilot Chat extension (required for git ask ai to work).

Installation

  1. Install the extension from the VS Code Marketplace.
  2. Restart VS Code (or reload the window) to ensure the CLI tools are added to your PATH.

Usage

You can use Git Suggest either via the Command Palette/Shortcuts or directly in your integrated terminal.

💻 Terminal Commands (Recommended)

Once installed, the extension adds a git-ask utility to your terminal.

1. Ask the AI: Analyzes your diffs and suggests the next move + commit message.

git ask ai

2. Standard Suggestions: Quickly checks status and rule-based logic.

git ask

Extension Settings

This extension contributes the following settings:

  • gitSuggest.pythonPath: Specify the path to your Python executable if it's not in your system global PATH.

  • Default: "python"

Troubleshooting

"git: 'ask' is not a git command"

  • Restart your terminal instance (trash can icon) to reload the PATH environment variable.

  • Ensure the extension is enabled.

"Thinking..." hangs forever

  • Ensure you have GitHub Copilot Chat installed and signed in.

  • Check the "Output" tab in VS Code and select "Git Suggest" from the dropdown to see error logs.

Permission Denied (Mac/Linux)

  • You may need to make the script executable manually:

chmod +x ~/.vscode/extensions/dhairya-k1.git-suggest-*/bin/git-ask

Release Notes

Version 0.0.2

  • Added git ask ai CLI command.

  • Added git ask CLI command.

Enjoy smoother Git workflows!

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