微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

一、问题
在进行【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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐