Loading...
Loading...
Compare original and translation side by side
git-agent commitgit-agent commitgit diff --statgit-agent commit --intent "..."--freegit-agent commit --intent "..." --free--free~/.config/git-agent/config.ymlbase_url: https://api.openai.com/v1
api_key: sk-...
model: gpt-4ogit diff --statgit-agent commit --intent "..."--freegit-agent commit --intent "..." --free--free~/.config/git-agent/config.ymlbase_url: https://api.openai.com/v1
api_key: sk-...
model: gpt-4o| Flag | When to use |
|---|---|
| User wants to preview the message without committing |
| User has already staged specific files and doesn't want auto-staging |
| User wants to rewrite the most recent commit message |
| Always set — keeps generated messages focused |
| Attribute a co-author (repeatable); skipped if |
| Add an arbitrary git trailer (repeatable) |
| Omit the default |
| Cap diff size sent to the model (0 = no limit) |
--amend--no-stage| 标志 | 使用场景 |
|---|---|
| 用户想要预览提交信息而不实际提交 |
| 用户已暂存特定文件,不希望自动暂存 |
| 用户想要重写最近一次的提交信息 |
| 始终需要设置——确保生成的信息聚焦主题 |
| 添加协作者(可重复使用);若配置中设置了 |
| 添加任意的Git尾部信息(可重复使用) |
| 省略默认的 |
| 限制发送给模型的diff行数(0表示无限制) |
--amend--no-stagenamedescriptiongit-agent init --scopenamedescriptiongit-agent init --scope2--intentgit-agent commit --intent "update module path"02--intentgit-agent commit --intent "update module path"0<type>(<scope>): <description>
- <Bullet one>
- <Bullet two>
<Explanation paragraph>
Co-Authored-By: Git Agent <noreply@git-agent.dev><type>(<scope>): <description>
- <Bullet one>
- <Bullet two>
<Explanation paragraph>
Co-Authored-By: Git Agent <noreply@git-agent.dev>| Command | What it does |
|---|---|
| Initialize git-agent in a repo (generates scopes, .gitignore, installs hooks) |
| Regenerate scopes only |
| Show resolved provider configuration |
| Set a config value (auto-selects scope) |
| Show a config value and its source scope |
| Generate shell completions (bash/zsh/fish/powershell) |
| Print build version |
| 命令 | 功能 |
|---|---|
| 在仓库中初始化git-agent(生成范围、.gitignore、安装钩子) |
| 仅重新生成范围 |
| 显示已解析的提供商配置 |
| 设置配置值(自动选择范围) |
| 显示配置值及其来源范围 |
| 生成Shell补全脚本(bash/zsh/fish/powershell) |
| 打印构建版本 |