前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >关于从Git上传仓库至GitHub时出现remote: error: GH007: Your push would publish a private email address.

关于从Git上传仓库至GitHub时出现remote: error: GH007: Your push would publish a private email address.

作者头像
可定
发布2020-04-20 14:48:20
2.8K0
发布2020-04-20 14:48:20
举报
文章被收录于专栏:细嗅蔷薇

最近,在学习Github的过程中遇到的问题:remote: error: GH007: Your push would publish a private email address.

使用命令:

代码语言:javascript
复制
git push -u origin master

把本地库的内容推送到远程库的过程中,出现了如下问题

代码语言:javascript
复制
Counting objects: 20, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (20/20), 1.59 KiB | 325.00 KiB/s, done.
Total 20 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), done.
remote: This repository moved. Please use the new location:
remote:   git@github.com:Lollipopguang/learngit.git
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 github.com:lollipopguang/learngit.git
 ! [remote rejected] master -> master (push declined due to email privacy restrictions)
error: failed to push some refs to 'git@github.com:lollipopguang/learngit.git'

解决办法如下:

在GitHub的你账号网页上右上角,个人的登录退出的位置,找到setting:

setting->emails->Keep my email address private,把这一项去掉勾选即可。

版权所有:可定博客 © WNAG.COM.CN

本文标题:《关于从Git上传仓库至GitHub时出现remote: error: GH007: Your push would publish a private email address.》

本文链接:https://cloud.tencent.com/developer/article/1616860

特别声明:除特别标注,本站文章均为原创,本站文章原则上禁止转载,如确实要转载,请电联:wangyeuuu@qq.com,尊重他人劳动成果,谢过~

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-05-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档