从idea上传项目到gitee,
如果报错:Push rejected: Push to origin/master was rejected
解决方法:
- 切换到自己项目所在的目录,右键选择GIT BASH Here
- 在terminl窗口中依次输入命令:
- git pull
- git pull origin master
- git pull origin master --allow-unrelated-histories
- 在idea中重新push自己的项目,即可成功push。
2023-11-07 13:50:22
从idea上传项目到gitee,
如果报错:Push rejected: Push to origin/master was rejected
解决方法: