git refusing while pull from upstream

Viewed 34

if I try to pull from origin this error I got: fatal: refusing to merge unrelated histories and I tried this code also git pull upstream branch --allow-unrelated-histories then I got conflict. Automatic merge failed; fix conflicts and then commit the result

1 Answers

It is better to understand why you have this message.

But see if the issue persists if:

  • you clone the repository
  • switch to the right branch
  • report your work in progress in that branch
  • go on working on said branch (push/pull)
Related