Error: refusing to merge unrelated histories

In this article let’s discuss about Error: refusing to merge unrelated histories. Let’s go through the following methods without any delay.

Method 1:

git pull origin master --allow-unrelated-histories

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

git pull --allow-unrelated-histories origin master

Hope the above solution works.

Realted Posts : How to kill process running on port mac?