赞
踩
关联本地项目到新建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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。