git push报错 ! [remote rejected] master -> master (push declined due to email privacy restrictions)

使用push命令 将本地仓库push到github时 报错:

git push https://github.com/lexsaints/taobao_spider.git master

报错信息如下:

remote: Resolving deltas: 100% (2/2), completed with 1 local object.
remote: error: GH007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: http://github.com/settings/emails
To https://github.com/lexsaints/taobao_spider.git
 ! [remote rejected] master -> master (push declined due to email privacy restrictions)
error: failed to push some refs to 'https://github.com/lexsaints/taobao_spider.git'

我们根据上面的报错信息提示,基本能确定是email的设置问题,所以进入到email的设置中进行修改:修改settings中的email选:按照下图流程操作:

取消选中 之后,重新进入命令行,进行push操作。push成功

push成功后,查看github里 提交的内容更新上去了

扫描二维码关注公众号,回复: 2486005 查看本文章

猜你喜欢

转载自blog.csdn.net/weixin_42350212/article/details/81211443