赞
踩
在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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。