IDEA工具上传项目报:Push rejected: Push to origin/master was rejected

Posted kxm87

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA工具上传项目报:Push rejected: Push to origin/master was rejected相关的知识,希望对你有一定的参考价值。

原文:https://blog.csdn.net/a137151062/article/details/78820806

解决方案如下:

1.切换到自己项目所在的目录,右键选择GIT BASH Here

2.在terminl窗口中依次输入命令:

git pull

git pull origin master

git pull origin master --allow-unrelated-histories

3.在idea中重新push自己的项目,成功!!!


以上是关于IDEA工具上传项目报:Push rejected: Push to origin/master was rejected的主要内容,如果未能解决你的问题,请参考以下文章

IDEA Git 上传代码时遇到 Push rejected: Push to origin/master was rejected

idea push项目到git提示Push rejected怎么解决

解决上传代码到GitHub报错Push rejected: Push to origin/master was rejected

Git上传项目提示Push rejected: Push to origin/master was rejected解决办法

IDEA使用Git出现push to origin/master was rejected错误解决方案

提交项目到gitee报错Push to origin/master was rejected的解决办法