gitee error: GE007: Your push would publish a private email address.

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/master

提交代码失败问题,使用了私人邮箱提交,在gitee默认设置了不公开邮箱,且禁止命令行推送,导致提交不成功。

解决办法:

1、登录gitee,个人设置,邮箱管理,取消勾选`禁止命令行推送暴露个人邮箱`

2、登录gitee,个人设置,邮箱管理,使用gitee生成的提交邮箱代替个人邮箱生成ssh秘钥(ssh密钥配置办法点击此)

 

 

posted @ 2023-11-14 15:13  RoarInWind  阅读(440)  评论(0编辑  收藏  举报