今天爱分享给大家带来gitee报错 Push to origin/master was rejected【解决方法】,希望能够帮助到大家。
步骤1:
alt + f12 键 打开Intellij 命令窗口

执行命令:
git push -u origin master -f
后报错:
remote: Powered by GITEE.COM [GNK-5.0]
remote: error: GE007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiti
ng:
remote: https://gitee.com/profile/emails
remote: error: hook declined to update refs/heads/master
To gitee.com:/dong-chaoke/jvm_analyse.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to ‘git@gitee.com:/xxx/jvm_analyse.
git’
之后进入gitee中

即可正常提交
原文链接:https://itblood.website/4027.html,转载请注明出处。

![和妹妹一起生活V1.5+DLC AI汉化整合版+存档[新汉化] (妹ちゃんとくらそう) [精品互动SLG/汉化/动态]](/wp-content/uploads/replace/2025/07/19/f9ebc5ce830e039fde9a07e6a724cf7d.webp)