Interview Prep/Git & GitHub/Merge, rebase and cherry-pick

Why does a rebase cause the same conflict to appear on many commits?

IntermediateConceptMerge, rebase and cherry-pick
Answer

Rebase replays commits one at a time, so a change that conflicts with upstream conflicts for every later commit that touches the same lines. Squash first (or use rerere), or merge instead to resolve once. If conflicts are huge, git merge is usually less painful.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick