Skip to main content

Course

Git and GitHub

Git and GitHubPart 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.

Read first: Bringing Two Histories Back Together


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.