您当前的位置: 首页 >  git

罗四强

暂无认证

  • 2浏览

    0关注

    497博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

罗四强 发布时间:2018-07-25 22:28:43 ,浏览量:2

使用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里 提交的内容更新上去了

 

关注
打赏
1625533955
查看更多评论
立即登录/注册

微信扫码登录

0.0443s