Recently, I have been asked by a friend to pull changes from remote repo into local. He told me that, at first, he copied the local repo as backup and then worked in that repo and pushed code to remote. Now in the orignal repo (from where he copied all the stuff) git pull
was throwing this error message.
Can not merge two branches with unrelated history.
I don't know what exactly was the problem and I just want to recreate the scenario and generate same error message again. How can I recreate the same scenario? What are the possible reasons for above errors?