ChatGPT + Git Helper
A VS Code extension that combines Git operations with AI-powered assistance .
Features
- Modern Dashboard: Dark-themed UI with repository info, user profile, and quick stats.
- Fast Push: One-click "Init -> Add -> Commit -> Push" workflow.
- Git Operations: Commit, Push, Pull, Stash, and more.
- Branch Management: Create, Switch, Merge, and Delete branches easily.
- AI Chat: Ask natural language questions about Git or your code.
- Secure Storage: Safely stores your API Keys and GitHub PAT.
- Customizable AI Provider: Support for OpenAI, GLM, Grok, or any OpenAI-compatible API.
Setup
- Install the Extension.
- Open the Sidebar: Click the Git Helper icon in the Activity Bar.
- Complete Setup:
- GitHub Login: Use the "Login with GitHub" button for secure OAuth connection.
- AI Config: Enter your API Key, Base URL, and Model Name directly in the setup view.
- Start Coding: Use the Dashboard for quick actions or the Chat for help.
Usage
- Dashboard:
- Repo Info: See current repo name and path.
- Quick Action: Use "Fast Push" to sync changes instantly.
- Git Ops: Standard operations like Commit, Push, Pull, Stash.
- Branch Ops: Manage branches without leaving the sidebar.
- Chat: Ask questions like "How do I undo the last commit?" or "Explain this git error".
- Profile: Update your settings and connections.
Requirements
- Git installed and available in your PATH.
- An active internet connection for AI features.
Extension Settings
This extension contributes the following settings:
gitHelper.apiProvider: Select the AI provider (OpenAI, GLM, Grok, Other).
gitHelper.apiBaseUrl: The base URL for the API.
gitHelper.modelName: The model to use (e.g., gpt-3.5-turbo, glm-4).
Known Issues
- Ensure you have a workspace folder open for Git operations to work.
| |