fatal: refusing to merge unrelated histories

                fatal: refusing to merge unrelated histories(git上传失败)

输入命令:

git pull origin master --allow-unrelated-histories


这是因为远程仓库origin上的分支master和本地分支master被Git认为是不同的仓库,所以不能直接合并。


详情:

https://www.2cto.com/kf/201707/660488.html

原文地址:https://www.cnblogs.com/meiLinYa/p/9231028.html