最近,在学习Github的过程中遇到的问题:remote: error: GH007: Your push would publish a private email address.
使用命令:
git push -u origin master
把本地库的内容推送到远程库的过程中,出现了如下问题
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,尊重他人劳动成果,谢过~