当前位置:   article > 正文

git出现:[up to date] master -> origin/masterrefusing to merge unrelated histories

git出现:[up to date] master -> origin/masterrefusing to merge unrelated histories

gitlab提交项目时提示

错误如下:

Git Pull Failed
POST git-upload-pack (316 bytes)
From https://gitee.com/specking/study

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

原因:本地仓库和远程仓库实际上是独立的两个仓库,要把他们变成同一个。

解决:

git pull origin master --allow-unrelated-histories

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

闽ICP备14008679号