• 那是从何处传来的钟声呢?偶尔听到那钟声,平添一份喜悦与向往之情。

github 提交报错:error: failed to push some refs to ‘https://github.com/nanait/SpongePie.git’错误解决方法

前端 Nanait 6年前 (2018-02-20) 1618次浏览 已收录 0个评论 扫描二维码
文章目录[隐藏]

出现错误

刚刚在写完一点点代码的时候,用git提交到GitHub的时候出现了错误,下面这样:

github 提交报错:error: failed to push some refs to 'https://github.com/nanait/SpongePie.git'错误解决方法

百度谷歌了一下,找到解决方法…

解决方法

错误原因应该是我在github 上之前有修改,但是我没有 clone 到本地的仓库,这时我又需要 commit,则两者发生冲突,英文翻译为检查到本地并没有检测到以前的版本,所以,参照以下网站,即可解决问题:

参考网址:http://stackoverflow.com/questions/20939648/issue-pushing-new-code-in-github

所以重新 clone 到本地,再提交…


何处钟 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:github 提交报错:error: failed to push some refs to ‘https://github.com/nanait/SpongePie.git’错误解决方法
喜欢 (8)
[15211539367@163.com]
分享 (0)

您必须 登录 才能发表评论!