English Documentation | 中文文档
最强大的 Git 提交助手!
- OpenAI
- DeepSeek
- Doubao (豆包) - 内置,您不需要自己携带 API Key
- Gemini
# 将仓库添加为tap(使用完整URL)
brew tap zzxwill/aigit https://github.com/zzxwill/aigit.git
# 安装稳定版本(从releases)
brew install aigit
# 安装开发版本(从dev分支)
brew install --HEAD aigit
# 备选方案:从本地formula文件安装
# curl -O https://raw.githubusercontent.com/zzxwill/aigit/master/Formula/aigit.rb
# brew install --formula aigit.rb您可以通过以下方式之一安装 aigit:
- 使用
go install(当前版本:v0.0.8):
go install github.com/zzxwill/aigit@latest$ aigit version
v0.0.8- 从发布页面下载:
- 前往 发布页面 下载适合您平台的二进制文件。
- 将二进制文件重命名为
aigit并移动到/usr/local/bin/aigit。
chmod +x aigit && sudo mv aigit /usr/local/bin/aigitgit clone https://github.com/zzxwill/aigit.git
cd aigit
go build -o aigit main.go
sudo mv aigit /usr/local/bin/aigit$ aigit commit
🤖 Generating commit message...
📝 Generated commit message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(llm): add support for volcengine-go-sdk
This commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service.
The following changes were made:
- Provider type and APIKey field were added to the llm.Config struct.
- generateDoubaoCommitMessage function was updated to use the volcengine-go-sdk.
- The client is initialized with the apiKey and endpointId.
- A prompt is constructed and sent to the CreateChatCompletion API.
- The first choice's message is returned as the commit message.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤔 What would you like to do?
1. Commit this message (default)
2. Regenerate message
Enter your choice (press Enter for default):
✅ Successfully committed changes!$ aigit auth add gemini AIzaSyCb56bjWn02e2v4s_TxHMDnHbSJQSx_tu8
Successfully added API key for gemini
$ aigit auth add doubao 6e3e438c-a380-4ed5-b597-e01cb82bc4df ep-20250110202503-fdkgq
Successfully added API key for doubao
$ aigit auth ls
Configured providers:
gemini *default
doubao
$ aigit commit
🤖 Generating commit message...
📝 Generated commit message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(llm): add support for volcengine-go-sdk
This commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service.
The following changes were made:
- Provider type and APIKey field were added to the llm.Config struct.
- generateDoubaoCommitMessage function was updated to use the volcengine-go-sdk.
- The client is initialized with the apiKey and endpointId.
- A prompt is constructed and sent to the CreateChatCompletion API.
- The first choice's message is returned as the commit message.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤔 What would you like to do?
1. Commit this message (default)
2. Regenerate message
Enter your choice (press Enter for default): 2
🤖 Regenerating commit message...
📝 Generated commit message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(llm): add support for volcengine-go-sdk
This commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service.
The following changes were made:
- Provider type and APIKey field were added to the llm.Config struct.
- generateDoubaoCommitMessage function was updated to use the volcengine-go-sdk.
- The client is initialized with the apiKey and endpointId.
- A prompt is constructed and sent to the CreateChatCompletion API.
- The first choice's message is returned as the commit message.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤔 What would you like to do?
1. Commit this message (default)
2. Regenerate message
Enter your choice (press Enter for default): 1
✅ Successfully committed changes!