返回 Skills Library
效率工具 来源:GitHub 协议:MIT 协议已标注

git-machete

用分支关系和堆叠变更管理复杂 Git 工作流,减少分支整理成本。

1.1K GitHub stars 2026-09-05 星标同步 2026-07-16 收录时间
#git#branches#workflow

快速判断

01这个 Skill 是干嘛的
用分支关系图和堆叠变更管理复杂 Git 分支工作流。
02它能解决什么问题
解决并行分支过多、依赖关系不清、同步与 rebase 容易出错的问题。
03它适合谁来用
适合采用 stacked PR、长期多分支开发的工程师和代码评审团队。

预览 · README.md

中文为 README 译文;English 保留 GitHub README 原文。

git-machete

用分支关系和堆叠变更管理复杂 Git 工作流,减少分支整理成本。

主要能力

Use whenever invoking the git machete CLI to organize branch chains, compute fork points, run stacked rebases/merges, or manage GitHub/GitLab PR/MR chains - especially in a repo that already has a .git/machete file. Lists which subcommands modify .git/machete, run rebase/merge, run hooks, or read stdin, so the agent can pick the right one and pass the right flags. Crucially, names the commands that MUST be invoked with -y/--yes (and the few that have no -y and therefore must NOT be invoked at all without a tty) so the agent never hangs on an interactive prompt. Also warns against hand-editing the .git/machete layout file.

使用方式

仓库级安装会保留完整目录;本次核验的入口是 skills/git-machete/SKILL.md。使用前先阅读英文 README 与原始 SKILL.md,并按当前 Agent 的目录规范安装。

适用边界

会影响分支与提交历史的操作必须先理解命令并保留远端备份。

许可与来源

来源:GitHub 公开仓库。核验许可:MIT。本页是贴近原仓库结构的中文导读,具体参数、依赖和更新记录以英文 README 为准。