代码改变世界

Git :fatal: refusing to merge unrelated histories解决

2021-07-14 13:24  Tanwheey  阅读(39)  评论(0编辑  收藏  举报

 

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


解决:git pull origin master --allow-unrelated-histories
  • 可以允许不相关历史提,强制合并