现象
![](https://i-blog.csdnimg.cn/blog_migrate/6c54a81e4f8a2e3d1c7e462d31c4ac6d.png)
Total 77 (delta 9), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.4]
remote: error: GE007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: https://gitee.com/profile/emails
remote: error: hook declined to update refs/heads/local_master
error: failed to push some refs to 'https://gitee.com/xxx.git'
!refs/heads/local_master:refs/heads/local_master[remote rejected] (hook declined)
Done
解决方案
公开邮箱
![](https://i-blog.csdnimg.cn/blog_migrate/dea4cccd31a20c8731be630b2dcbb311.png)
取消勾选即可
2. 不公开邮箱
2.1. 方法一
![](https://i-blog.csdnimg.cn/blog_migrate/9cebed4f7986b605c7326e376a4968df.png)
取消勾选☑️
2.1. 方法二
提交邮箱设置
这里涉及个人隐私,提供链接大家自行查看方式原理
others
本文是针对推送gitee
实际上其他仓库原理也是类似
Thanks