Git 修改任意提交记录 guanguans 2018-09-09 445 阅读1分钟 使用方式是 git rebase -i 目标 commit; 在编辑界面中指定需要操作的 commits 以及操作类型(将要修改的 commit 类型 pick 改成 edit); 修改提交记录 git commit --amend ; 操作完成之后用 git rebase --continue 来继续 rebase 过程; 重复 git commit --amend 和 git rebase --continue 直到交互合并完成。