Git History Cleanup

安全整理并重写 Git 分支历史,在最终仓库 Tree 完全不变的前提下压缩碎片提交、移除已完全回滚或净效果为零的提交链,并用 Tree SHA 做等价校验。用户明确要求“整理最近提交”“合并碎片提交”“清理 revert/临时提交”“重写历史但代码不能变”时使用;不用于普通代码修改,也不得在未获授权时强推共享分支。

sdwurg180507280211 Updated

File contents

sdwurg180507280211/my-skills/tree/main/skills/git-history-cleanup commit 97a22153f1

Frequently asked questions

npx skillmds@latest add sdwurg180507280211/git-history-cleanup