首页 > Web开发 > 详细

错误:error: failed to push some refs to 'https://github.com/pzq7025/KG.git'的解决办法

时间:2019-06-25 00:43:50      阅读:255      评论:0      收藏:0      [点我收藏+]

一、问题
在进行【git push orgin master】的时候出现如下错误

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to https://github.com/pzq7025/KG.git
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. git pull ...) before pushing again.
hint: See the Note about fast-forwards in git push --help for details.


二、解决
产生这个错误是由于当前版本和提交的版本较低的原因,因此使用【git push origin master -f】就可以解决这个问题。

三、结果展示
技术分享图片

 

四、参考
https://blog.csdn.net/crazydony/article/details/51983343

错误:error: failed to push some refs to 'https://github.com/pzq7025/KG.git'的解决办法

原文:https://www.cnblogs.com/future-dream/p/11080229.html

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