Part 3 of 6 · Chapter 4 of 4

Replaying Commits Somewhere Else

Rebase does not move your commits; it copies them and abandons the originals, which is exactly why it is both tidy and dangerous. Compare the two histories side by side, then meet the one rule that keeps it safe.

Advanced13 min read

Worth reading first: Bringing Two Histories Back Together


Make a free account to read on

Every chapter is free — an account is how your progress, XP, and streak follow you from your laptop to your phone, and how you show up on the leaderboard. No payment, no trial.