IDEA使用Git远程推送出现push to origin/master was rejected错误解决方案
切换到自己项目所在的目录,右键选择GIT BASH Here在terminl窗口中依次输入命令:git pullgit pull origin mastergit pull origin master --allow-unrelated-histories在idea中重新push自己的项目,即可成功push。原文出处:https://www.cnblogs.com/shyroke/p/925563
·
- 切换到自己项目所在的目录,右键选择GIT BASH Here
- 在terminl窗口中依次输入命令:
- git pull
- git pull origin master
- git pull origin master --allow-unrelated-histories
- 在idea中重新push自己的项目,即可成功push。
更多推荐
已为社区贡献1条内容
所有评论(0)