SourceTree提交代码到码云(gitee)报错 failed to push some refs to ‘https://gitee.com/xxxxx/xxxx.git‘

提示报错:

remote: Powered by GITEE.COM [GNK-3.8]                                          
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/develop                       
To https://gitee.com/xxxx/xxxx.git                                        
 ! [remote rejected] develop -> develop (hook declined)                         
error: failed to push some refs to 'https://gitee.com/xxxxx/xxxx.git'      

解决的办法:

其实下面一句说的很明白 要公开邮箱才可以

remote: https://gitee.com/profile/emails   

今年年初,码云支持了一个帐号多邮箱的特性(详见《你到底有几个邮箱?码云账号增加多邮箱支持!》),支持用户将多个邮箱绑定到码云帐号,同时支持用户通过 git config 配置形如 `xxxx+username@user.noreply.gitee.com`  的邮箱进行代码提交并产生贡献度。

出于隐私保护的考虑,码云后续又推出了「邮箱隐私保护」的功能。用户在「个人设置」->「基本设置」->「多邮箱管理」中开启了「不公开我的邮箱地址」后,在网页上修改仓库内容并产生提交时,系统将默认使用上述的隐私邮箱地址作为提交邮箱。通过这一功能,用户可以有效的保护自己的邮箱信息以避免不必要的打扰。

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

花生糖@

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值