git pull origin master --allow-unrelated-histories
后面加上 --allow-unrelated-histories , 把两段不相干的 分支进行强行合并
最后在git push
原文请点击------https://www.centos.bz/2018/03/git-%E5%87%BA%E7%8E%B0-fatal-refusing-to-merge-unrelated-histories-%E9%94%99%E8%AF%AF/???????
关于git pull 时出现 fatal refusing to merge unrelated histories的解决办法
原文:https://www.cnblogs.com/eternityz/p/12273124.html