错误“您的推送将发布私人电子邮件地址" [英] Error "Your push would publish a private email address"

查看:22
本文介绍了错误“您的推送将发布私人电子邮件地址"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 GitHub/VCS 非常陌生.

I'm very new to GitHub/VCS.

当我尝试在 GitHub 上共享我的项目时,收到以下错误消息.

When I try to share my project on GitHub, I get the following error message.

    Can't finish GitHub sharing process
    Successfully created project 'myproject' on GitHub, but initial push failed:
    remote: error: GH007: Your push would publish a private email address.
    failed to push some refs to 'https://github.com/me/myproject.git'

我在谷歌上搜索了错误消息,没有找到任何结果.我还搜索了 Stack Exchange,但没有搜索到雪茄.我该如何解决这个问题?

I've googled the error message and got no hits. I've also searched Stack Exchange, but no cigar. How can I solve this issue?

推荐答案

我也遇到了相同的 error: GH007 消息,并使用以下方法解决了该问题.

I experienced the same error: GH007 message as well and used the following to resolve the issue.

  1. 转到设置提交电子邮件地址.
  2. 按照为计算机上的每个存储库设置电子邮件地址.
  3. 打开您的 GitHub 帐户,然后转到设置电子邮件.
  4. 选中将我的电子邮件地址保密复选框.
  5. 取消选中阻止暴露我的电子邮件的命令行推送复选框.
  1. Go to Setting your commit email address.
  2. Follow the Setting your email address for every repository on your computer.
  3. Open your GitHub account, and go to SettingsEmails.
  4. Select the Keep my email address private check box.
  5. Unselect the Block command line pushes that expose my email check box.

不过这可能会暴露您的电子邮件地址.

This may expose your email address though.

这篇关于错误“您的推送将发布私人电子邮件地址"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆