git-ai
安装
Mac, Linux, Windows (WSL)
bash
$ export GIT_AI_LOCAL_BINARY=/Volumes/macdata/download/git-ai-macos-x64
$ curl -sSL https://usegitai.com/install.sh | bash
Using local git-ai binary (release: local)...
Created symlink at /Users/jade/.local/bin/git-ai
Successfully installed git-ai into /Users/jade/.git-ai/bin
You can now run 'git-ai' from your terminal
Installed git-ai 1.1.8
Setting up IDE/agent hooks...
Coding Agents
✓ Claude Code: Hooks updated
✓ Cursor: Hooks updated
⚠ Cursor: Unable to automatically install extension. Please cmd+click on the following link to install: cursor:extension/git-ai.git-ai-vscode (or search for 'git-ai-vscode' in the Cursor extensions tab)
✓ VS Code: Hooks already up to date
Installing extensions...
Installing extension 'git-ai.git-ai-vscode'...
Extension 'git-ai.git-ai-vscode' v0.1.17 was successfully installed.
✓ VS Code: Extension installed
✓ VS Code: git.path updated in /Users/jade/Library/Application Support/Code/User/settings.json
✓ VS Code: chat hook settings updated in /Users/jade/Library/Application Support/Code/User/settings.json
✓ GitHub Copilot: Hooks updated
✓ IntelliJ IDEA Ultimate: Plugin installed from JetBrains Marketplace
✓ Rider: Plugin installed from JetBrains Marketplace
Git Clients
Successfully set up IDE/agent hooks
Updated shell configurations:
✓ /Users/jade/.bash_profile
✓ /Users/jade/.zshrc
✓ /Users/jade/.config/fish/config.fish
To apply changes immediately:
- For bash: source /Users/jade/.bash_profile
- For zsh: source /Users/jade/.zshrc
- For fish: source /Users/jade/.config/fish/config.fish
Close and reopen your terminal and IDE sessions to use git-ai.Windows (non-WSL)
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm http://usegitai.com/install.ps1 | iex"插件 https://marketplace.visualstudio.com/items?itemName=git-ai.git-ai-vscode
命令
git-ai blame
git-ai blame <file>
git-ai blame <file> --json --contents [stdin]git-ai stats --jsonhttp://10.177.11.188:9000/ai-registry/git-ai/v1.1.8/git-ai-macos-x64
http://10.177.11.188:9000/maven-registry/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar