The question Git refusing to merge unrelated histories on rebase has 3000+ upvotes, 32 answers with a lot of votes… and only 1 of its answers, quite low below the other ones, actually takes care of the “on rebase” part of the question¹, and thus really answers it.
To be fair, the question title didn’t initially contain the “on rebase”, it was only mentioned in the body. The issue is probably more frequent with merge/pull, hence it attracts a lot of people with the exact same error in those situations.
Also note that, as opposed to the situation mentioned in How to resolve incoherence between question and answer, OP didn’t accept any answer, and even pointed repeatedly in the comments that his situation is a rebase and not a merge/pull.
It thus seems that the current situation is unsalvageable if we want to keep the original meaning of the question. On the other hand, the same question has also been asked and answered properly, so theoretically one should be a duplicate of the other… but that wouldn’t make much sense.
What should we do about it?
I would propose this, but I don’t know if it is acceptable:
- rephrase the question to match its answers (i.e. remove the “on rebase” part)
- add a note in the question about its history, and a link to the question properly describing the original problem
have a mod move the 1 or 2 answers that actually mention the rebase from the former to the latter– not possible
¹ ok, this one as well but it does not really answer the question