Push rejected: Push to origin/master was rejected
生活随笔
收集整理的这篇文章主要介绍了
Push rejected: Push to origin/master was rejected
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
1、错误日志
23:04 Maven projects need to be imported: Import Changes Enable Auto-Import23:05 4 files committed: 初始化项目23:06 Push rejected: Push to origin/master was rejected23:07 2 files committed: 初始化项目23:07 Push rejected: Push to origin/master was rejected
2、解决方案
1.切换到自己项目所在的目录,右键选择GIT BASH Here
2.在terminl窗口中依次输入命令:
git pullgit pull origin mastergit pull origin master --allow-unrelated-histories
3.在idea中重新push自己的项目,成功!!!
附一张执行的图:
转载地址:https://www.jianshu.com/p/b0fca181fbf7
转载于:https://www.cnblogs.com/niceyoo/p/10056219.html
总结
以上是生活随笔为你收集整理的Push rejected: Push to origin/master was rejected的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 浅谈JAVA中如何利用socket进行网
- 下一篇: AWS Amplify Console: