During git rebase origin/development
the following error message is shown from Git:
fatal: refusing to merge unrelated histories
Error redoing m
When doing a git pull
, I got this message fatal: refusing to merge unrelated histories
for a repo module where I hadn't updated the local copy for a while.
I ran this command just to refresh local from origin. I just wanted latest from remote and didn't need any local changes.
git reset --hard origin/master
This fixed it in my case.