My git repository has ~2,000 commits. For educational purposes, I have been playing around with git rebase -i.
When I type git rebase -i first-commit (where first-commit is a tag for the initial commit to the repo) and change nothing at all (i.e. leave all pick <hash> untouched), git starts replaying my history, but fails on dozens of commits citing conflicts. What would cause this? Why does it not simply replay my entire history?
I tried recreating it with an open source project, and got similar results, conflicts reported when rebasing on top of first commit using rebase interactive.
I ran it a second time and noticed it was happening at the same commit.
It seems the conflict was happening close to a merge point:
running the rebase again with the option -p was successful though:
git rebase will change the history to be more linear. Since there are merges in the history, they will have to be resolved if there are conflicts when the merge point is flattened out.