git fatal: refusing to merge unrelated histories

Posted 代码当酒喝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git fatal: refusing to merge unrelated histories相关的知识,希望对你有一定的参考价值。

* branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories
原因是在本地的文件夹为NewRepo,与远程仓库名称不一样

解决方案:
pull时添加 –allow-unrelated-histories

以上是关于git fatal: refusing to merge unrelated histories的主要内容,如果未能解决你的问题,请参考以下文章

Git fatal: refusing to merge unrelated histories

GIt -- fatal: refusing to merge unrelated histories 问题处理

git 出现 fatal: refusing to merge unrelated histories 错误

git 报错:fatal: refusing to merge unrelated histories?

fatal: refusing to merge unrelated histories

Git 报错:fatal: refusing to merge unrelated histories