现象

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
解决方案
公开邮箱

取消勾选即可
2. 不公开邮箱
2.1. 方法一

取消勾选☑️
2.1. 方法二
提交邮箱设置
这里涉及个人隐私,提供链接大家自行查看方式原理
others
本文是针对推送gitee
实际上其他仓库原理也是类似
Thanks