模型会找出 fork point,选出 main 尚未包含的 feature commits,依序用新的 parent 与 ID 重建,最后移动 feature pointer;main 不会移动。
游乐场不模拟文件、patch、index、conflict、reflog 或 garbage collection。Commit ID 是稳定的六位教学标签,不是真实 hash。
关于这个主题的常见疑问与实用解答。
选择情境,可先在 main 与 feature tip 增减 commit,再开始 rebase。用上一步、播放与下一步查看每个可回溯的步骤。
Commit 身份包含内容、metadata 与 parent 关系。即使 patch 相近,改到不同 parent 上 replay 仍会建立不同的 commit。
不会。整张 graph 都是浏览器内的教学模型;复制出的命令只是纯文本,绝不会在这里执行。