限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >软件教程

Git 提交时出现错误error: failed to push some refs to

分类:软件教程时间:2018-09-07浏览:3028
使用git push提交代码时提示如下错误: error: failed to push some refs to '[email protected]:....." Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to 大概原因就是 意思是本地和远程的文件应该合并后才能上传本地的新文件 解决方案 1、先从远程拉下来(pull),会自动合并的 git pull origin master 2、再上传 git push -u origin master 成功解决问题
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
0/500
Share your thoughts respectfully.