您的位置:首页 > 其它

git把本地仓库推送到新仓库

2017-03-22 11:19 169 查看
最想看的是这篇文章http://blog.csdn.net/djl4104804/article/details/50778717然后走到git push -u origin master就走不下去了,然后查看各种错误信息,走了各种弯路就是无法解决。其中大概知道了一些,说是要先commit,然后还得先pull一下,然后看到了这篇http://blog.csdn.net/change_on/article/details/50563744感觉终于要成功了,怀着忐忑的心情各种实验,还是失败了,git无法pull仓库refusing
to merge unrelated histories - lindex...然后又开始各种尝试git pull origin master --allow-unrelated-histories失败,然后就看到了这篇文章,http://www.crifan.com/git_github_git_push_origin_master_error_failed_to_push_some_refs_to/【已解决】github中git
push origin master出错终于搞定了。

步骤1:第一篇走到git push -u origin master之前。



步骤2:综合后面几篇




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: