Back
In my local, I made new text file -> git add newfile.txt -> commit -> pull origin master -> ERROR!
"refusing to merge unrelated histories".
What are unrelated histories? , what are related histories?
This error occurs because you might have committed in the remote repository and when you try to pull the error occurs, to resolve this you could use:
git pull origin master --allow-unrelated-historiesgit merge origin origin/master
git pull origin master --allow-unrelated-histories
git merge origin origin/master
For more information there is a tutorial link given below which will clear all doubts in git.
please refer:
31k questions
32.8k answers
501 comments
693 users