首页 > 其他 > 详细

git : error: failed to push some refs to xxxxx

时间:2019-09-12 13:14:02      阅读:55      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

原因:本地和远程的文件应该合并后才能上传本地的新文件

解决方案:

1、先拉下来,会自动合并的(不用操心)

git pull origin master

如果上述代码报错,用:

git pull origin master --allow-unrelated-histories

2、再上传

git push -u origin master

 

 

参考文章:https://blog.csdn.net/winnershili/article/details/78888548

git : error: failed to push some refs to xxxxx

原文:https://www.cnblogs.com/xiangsui/p/11511320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!