Git解决 fatal: refusing to merge unrelated histories

发布时间 2023-10-04 19:11:48作者: pwindy

一、fatal: refusing to merge unrelated histories

新建了一个本地仓库之后,把本地仓库和远程仓库进行关联提交、拉取的时候,

出现了如下错误:

二、解决方案

在你的操作命令后面加 --allow-unrelated-histories

例如:

    $ git pull origin master --allow-unrelated-histories

 

 

 

参考---https://blog.csdn.net/m0_74273517/article/details/129023387