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

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

问题描述

我是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天全站免登陆