✨ Features
- Visual Branch Management — View, switch, merge, delete branches
- Commit History — Browse recent commits with details
- Stash Manager — Save, apply, drop stashes visually
- Tag Explorer — Create, delete, push tags
- Remote Manager — Add, remove, fetch remotes
|
💬 Smart Commit Panel
- AI-Powered Messages — Generate commits using local Ollama
- Stage All Button — One-click staging
- Sync Button — Pull & Push with ↓↑ indicators
- Ahead/Behind Count — See pending changes at a glance
|
🤖 AI Integration (Ollama)
- AI Commit Generator — Smart commit messages from staged changes
- AI Command Assistant — Natural language Git commands
- AI Conflict Explainer — Understand merge conflicts
- AI Rebase Guidance — Step-by-step rebase help
- 100% Local & Private — No data leaves your machine
|
- GitLens-like Blame — Line-by-line author info
- Interactive Rebase — Full rebase workflow
- Bisect Wizard — Find bugs with binary search
- Worktree Manager — Multiple working directories
- Submodule Support — Full submodule operations
|
📦 Installation
From VS Code Marketplace
- Open VS Code
- Press
Ctrl+Shift+X (Extensions)
- Search for "GitPilot"
- Click Install
From VSIX File
code --install-extension gitpilot-0.0.1.vsix
🤖 AI Integration
GitPilot uses Ollama for 100% local, private AI features. Your code never leaves your machine!
Quick Setup
- Install Ollama: ollama.com
- Pull a model:
ollama pull llama3.2
# or
ollama pull mistral
- Start using AI: Click the ✨ button in the Commit panel
📋 All Commands (80+)
🟢 Basic Git
| Command |
Description |
GitPilot: Status |
View repository status |
GitPilot: Pull |
Pull from remote |
GitPilot: Push |
Push to remote |
GitPilot: Fetch |
Fetch all remotes |
GitPilot: Commit |
Create a commit |
GitPilot: Amend Last Commit |
Modify last commit |
GitPilot: Checkout Branch |
Switch branches |
GitPilot: Branch Operations |
Create, delete, rename |
GitPilot: Merge Branch |
Merge into current |
GitPilot: View Log |
View commit history |
GitPilot: View Diff |
View file differences |
🌐 Remote Commands
| Command |
Description |
GitPilot: View Remotes |
Show all remotes with URLs |
GitPilot: Add Remote |
Add new remote |
GitPilot: Remove Remote |
Remove a remote |
GitPilot: Rename Remote |
Rename a remote |
GitPilot: Set Remote URL |
Change remote URL |
GitPilot: Show Remote Info |
Detailed remote info |
GitPilot: Prune Remote Branches |
Remove stale branches |
| Command |
Description |
GitPilot: Rebase |
Interactive/normal rebase |
GitPilot: Cherry-Pick |
Apply specific commits |
GitPilot: Stash |
Save/restore work in progress |
GitPilot: Reset |
Soft, mixed, hard reset |
GitPilot: Revert |
Create revert commits |
GitPilot: Tag Operations |
Create, delete, push tags |
🔴 Advanced
| Command |
Description |
GitPilot: Blame File |
Line-by-line blame |
GitPilot: Clean Untracked Files |
Remove untracked files |
GitPilot: View Reflog |
View reference logs |
GitPilot: Bisect |
Binary search for bugs |
GitPilot: Worktree Operations |
Manage working directories |
GitPilot: Submodule Operations |
Manage submodules |
GitPilot: Restore File |
Restore from commit |
GitPilot: Show File at Commit |
View file at commit |
GitPilot: Compare File with Branch |
Diff with branch |
🤖 AI Commands
| Command |
Description |
GitPilot: AI Commit Message |
Generate commit message |
GitPilot: AI Command Assistant |
Natural language Git |
GitPilot: AI Explain Conflict |
Understand conflicts |
GitPilot: AI Rebase Guidance |
Rebase help |
📦 Repository Commands
| Command |
Description |
GitPilot: Initialize Repository |
Create new git repo |
GitPilot: Clone Repository |
Clone a repository |
GitPilot: Create Archive |
Export as zip/tar |
GitPilot: Repository Statistics |
Show repo stats |
GitPilot: Show Contributors |
Contributor summary |
GitPilot: Garbage Collection |
Run git gc |
GitPilot: Verify Repository Integrity |
Run git fsck |
🛡️ Safety Commands
| Command |
Description |
GitPilot: Force Push (with Backup) |
Safe force push |
GitPilot: Hard Reset (Protected) |
Protected reset |
GitPilot: Pre-Push Safety Check |
Validate before push |
GitPilot: View Protected Branches |
See protected branches |
The sidebar shows all Git information at a glance:
- 📁 Changes — Modified files ready to stage
- ✅ Staged — Files ready to commit
- 📊 Graph — Visual commit history
- 🌿 Branches — Local and remote branches
- 📜 Commits — Recent commit history
- 🏷️ Tags — Git tags
- 📦 Stashes — Saved stashes
- ☁️ Remotes — Configured remotes
Commit Panel
┌─────────────────────────────────┐
│ Commit message... [AI] │
├─────────────────────────────────┤
│ [Stage All] [Commit] │
├─────────────────────────────────┤
│ [ Sync (↓2 ↑3) ] │
└─────────────────────────────────┘
- AI Button — Generate commit message using Ollama
- Sync Button — Shows ↓ (behind) and ↑ (ahead) counts
⚙️ Settings
Configure in VS Code Settings (Ctrl+,):
| Setting |
Default |
Description |
gitPilot.autoCommit |
true |
Auto-commit before sync |
gitPilot.defaultMode |
"safe" |
Sync mode (safe/force) |
gitPilot.ai.enabled |
true |
Enable AI features |
gitPilot.ai.model |
"auto" |
Ollama model (auto-detect) |
gitPilot.safety.protectedBranches |
["main","master"] |
Protected branches |
🔒 Privacy & Security
- 🔐 100% Local AI — All AI processing happens on your machine via Ollama
- 🚫 No Telemetry — We don't collect any data
- 🔑 Git Credentials — Uses Git's built-in credential helper
- ⚠️ Protected Branches — Prevents accidental force-push to main branches
❓ FAQ
Do I need Ollama for this extension?
No! Ollama is optional. All Git features work without it. AI features require Ollama.
Is my code sent to any external servers?
No! All AI processing is done locally via Ollama. Your code never leaves your machine.
What Git version is required?
Git 2.0 or higher is recommended.
📝 Requirements
- VS Code 1.80.0 or higher
- Git installed and in PATH
- Ollama (optional, for AI features)
🐛 Known Issues
- Large repositories (>10,000 commits) may have slow graph rendering
- AI features require Ollama to be running in background
📦 Release Notes
0.0.1
- ✨ Git Explorer sidebar with all sections
- ✨ Commit panel with AI integration
- ✨ Sync button with ahead/behind counts
- ✨ 40+ Git commands
- ✨ Ollama AI integration (local, private)
- ✨ Protected branches and safety features
🤝 Contributing
Contributions welcome! Open an issue or submit a PR.
📄 License
MIT License