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

Git :fatal: refusing to merge unrelated histories解决

 

 

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

git pull origin master --allow-unrelated-histories

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

 

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-04-16
  • 2021-10-22
  • 2022-12-23
  • 2021-08-21
  • 2021-08-11
  • 2021-09-12
相关资源
相似解决方案