当前位置: 代码迷 >> 综合 >> ideapush代码报错:Push rejected: Push xxx to origin/xxx.x was rejected by remote 解决办法
  详细解决方案

ideapush代码报错:Push rejected: Push xxx to origin/xxx.x was rejected by remote 解决办法

热度:53   发布时间:2023-09-29 07:49:14.0

ideapush代码报错:Push rejected: Push xxx to origin/xxx.x was rejected by remote 解决办法

解决方案如下:

1.切换到自己项目所在的目录,右键选择GIT BASH Here(也可以在ideal中操作)

git pull

git pull origin xxx

git pull origin xxx --allow-unrelated-histories

3.在idea中重新push自己的项目。

如果还不行: git push -u origin xxx -f

  相关解决方案