当前位置:   article > 正文

git push 或 pull 出错:refusing to merge unrelated histories_branch dev -> fetch_head = [up to date] dev -> ori

branch dev -> fetch_head = [up to date] dev -> origin/dev refusing to merge

关联本地项目到新建github空项目后,pull及push提示如下错误

Git Pull Failed
* branch master -> FETCH_HEAD
= [up to date] master -> origin/master
refusing to merge unrelated histories

或者

Push rejected: Push to origin/master was rejected

原因: git拒绝合并两个不相关的东西

解决方法:

git pull origin master --allow-unrelated-histories

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/384838
推荐阅读
相关标签
  

闽ICP备14008679号