其他分享
首页 > 其他分享> > Git :fatal: refusing to merge unrelated histories解决

Git :fatal: refusing to merge unrelated histories解决

作者:互联网

本地创建了一个仓库(有README),把本地仓库和Github上关联以后,发现git pull,git feach提醒fatal: refusing to merge unrelated histories

 

 

原因是两个分支是两个不同的版本,具有不同的提交历史

git pull origin master --allow-unrelated-histories

可以允许不相关历史提,强制合并,确实解决了这个问题,感谢网友

 

标签:Git,pull,git,refusing,histories,unrelated,fatal
来源: https://www.cnblogs.com/QW-lzm/p/15357128.html