I have repo with a single branch and numerous commits.
I want to squash all commits into one.
I do:
git rebase --root -i
(see: How to squash all git commits into one?)
after setting all commits to squash (except the first, set to "pick") and exiting the editor, the interactive rebase stops and asks me to solve some conflicts.
I am quite confused about this. I understand conflicts when merging a branch into another. I do not understand it when squashing: should not be the newer commit be automatically considered as the "correct" version of the file ? Also, several files have been modified throughout the commits, how come only a very few of them show conflicts ?