模型會找出 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 都是瀏覽器內的教學模型;複製出的命令只是純文字,絕不會在這裡執行。