agentic git commit generate tool
fastgit commit: AI 提交流程(保留原行为)fastgit commit ai: AI 提交流程显式入口(新增)fastgit ggc list: 查看统一命令面(ggc 风格)fastgit ggc <command ...>: 执行统一命令,例如fastgit ggc status shortfastgit ggc/fastgit ggc interactive: 进入交互模式(增量搜索 + workflow)fastgit ggc path: 查看当前ggc.yaml的实际路径(按 OS/XDG 规则)
fastgit ggc status|status shortfastgit ggc add <file|.>fastgit ggc commit <message>fastgit ggc log simple|graphfastgit ggc diff|diff staged|diff unstagedfastgit ggc branch current|list local|list remote|checkout <name>|checkout remote <name>|create <name>|delete <name>fastgit ggc fetch|fetch prunefastgit ggc pull current|pull rebasefastgit ggc push current|push forcefastgit ggc rebase <upstream>|continue|abort|skipfastgit ggc tag list|show <tag>fastgit ggc remote list
- 搜索模式(默认)
- 输入字符:实时 fuzzy 过滤命令
↑/↓或Ctrl+N/P:移动选中Enter:执行当前命令Tab:将当前命令加入当前 workflowCtrl+T:切换到 workflow 模式Ctrl+C:退出
- workflow 模式
n:新建 workflowd/Ctrl+D:删除当前 workflowc:清空当前 workflowCtrl+N/P:切换 workflowx或Enter:执行当前 workflowCtrl+T:返回搜索模式
对于带占位参数的命令(如
<name>),执行时会自动提示输入参数。
- workflow 会持久化到:
<XDG 配置目录>/fastgit/ggc.yaml- macOS 常见为:
~/Library/Application Support/fastgit/ggc.yaml - Linux 常见为:
~/.config/fastgit/ggc.yaml
- macOS 常见为:
- 每次进入
fastgit ggc交互模式会自动加载上次 workflow - 在交互模式里对 workflow 的新增/删除/清空会自动保存
ggc.yaml 支持两种 alias:
- 单条 alias(字符串)
- 序列 alias(字符串数组,按顺序执行)
示例:
aliases:
st: "status short"
ci: "commit {0}"
quick:
- "status"
- "add ."
- "commit {0}"说明:
{0}、{1}... 表示位置参数- 例如:
fastgit ggc ci "fix typo" - 例如:
fastgit ggc quick "chore: update" fastgit ggc list会同时显示内置命令与 alias
- OPENAI_API_KEY
- OPENAI_BASE_URL, default: https://api.deepseek.com/v1
- OPENAI_MODEL, default: deepseek-chat