GitPilot is an intelligent AI-powered Git assistant that bridges the gap between natural language and Git commands directly in Visual Studio Code. Simply describe what you want to do with Git in plain English, and GitPilot will generate and execute the appropriate Git commands for you.
- Natural Language Processing: Convert plain English requests into precise Git commands
- Context-Aware Intelligence: Analyzes your repository state to provide relevant suggestions
- Multi-Model Support: Choose from multiple AI providers:
- Google Gemini: Fast, accurate responses
- Groq: Lightning-fast inference with Llama models
- DeepSeek: Advanced reasoning capabilities
- Destructive Operation Detection: Identifies potentially dangerous commands and requires confirmation
- Command Validation: Prevents command injection and validates Git syntax
- Preview Mode: See what commands will be executed before running them
- Context Warnings: Alerts about uncommitted changes, remote status, and other potential issues
- Real-time Status: Shows current branch, staged/unstaged files, and repository state
- Integrated UI: Beautiful panel integrated into VS Code's interface
- Command History: Track previously executed commands
- Install the extension from the VS Code Marketplace
- Configure your API keys in VS Code settings:
- Go to Settings (Ctrl+,)
- Search for "GitPilot"
- Add your API keys for Gemini and/or Groq
You need at least one of the following API keys:
- Google Gemini API Key: Get from Google AI Studio
- Groq API Key: Get from Groq Console
- Open Command Palette (Ctrl+Shift+P)
- Type "GitPilot: Execute Command"
- Enter your request in natural language
- Review and execute the generated command
- Click the GitPilot icon in the Activity Bar
- Use the integrated panel to interact with GitPilot
- View repository status and execute commands seamlessly
- Right-click on any folder in the Explorer
- Select "GitPilot: Execute Command" from the context menu
"create a new branch for user authentication"
→ git checkout -b feature/user-authentication
"commit all changes with message 'Add login functionality'"
→ git add . && git commit -m "Add login functionality"
"undo the last commit but keep changes"
→ git reset --soft HEAD~1
"show commits from last week"
→ git log --since="1 week ago" --oneline
"merge the feature branch into main"
→ git checkout main && git merge feature-branch
Access GitPilot settings in VS Code:
- GitPilot: Gemini API Key - Your Google Gemini API key
- GitPilot: Groq API Key - Your Groq API key (optional)
- GitPilot: Default Model - Choose your preferred AI model
- GitPilot: Auto Confirm - Skip confirmation for destructive operations
- GitPilot: Show Explanations - Display explanations for generated commands
GitPilot includes comprehensive safety measures:
- Command Analysis: Automatically detects potentially destructive operations
- User Confirmation: Requires explicit confirmation for dangerous commands
- Preview Mode: See exactly what will be executed before running commands
- Repository Awareness: Considers your current Git state when generating commands
We welcome contributions! Please see our Contributing Guide for details.
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Issues
This project is licensed under the MIT License - see the LICENSE file for details.
Note: GitPilot requires API keys from AI providers. Your code and Git operations remain local to your machine - only the natural language requests are sent to the AI services for command generation.