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.
More on Merge, rebase and cherry-pick
What is the difference between a fast-forward merge and a merge commit?BeginnerHow does a three-way merge work?IntermediateWhat does `git rebase` actually do?IntermediateMerge versus rebase: how do you decide?IntermediateWhat are squash merge, merge commit and rebase-and-merge on GitHub?IntermediateWhy does a squash-merged branch show as unmerged to `git branch --merged`?Intermediate