Push rejected: Push to origin/master was rejected

Push rejected: Push to origin/master was rejected


原因:推拒绝:推送到起源/主人被拒绝

解决方案如下:

方案1:

1.在Idea打开终端

Push rejected: Push to origin/master was rejected_第1张图片
方案2:

1、在对应项目文件里打开 Git Bash

然后依次输入:

git pull

git pull origin master

git pull origin master --allow-unrelated-histories

最后重新尝试push

你可能感兴趣的:(git,idea,gitee)