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
- Install the extension from the VS Code Marketplace.
- 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:
Troubleshooting
"git: 'ask' is not a git command"
"Thinking..." hangs forever
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
Enjoy smoother Git workflows!