Your push would publish a private email address error

匿名 (未验证) 提交于 2019-12-03 01:27:01

问题:

I'm very new to Github/VCS.

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' 

I've googled the error message, and got no hits. I've also searched stackexchange, but no cigar. Any ideas on how to solve this issue?

回答1:

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

  1. Go to https://help.github.com/articles/setting-your-email-in-git/.
  2. Follow the Setting your email address for every repository on your computer.
  3. Open your GitHub account, and go to Settings > Emails.
  4. Select the Keep my email address private check box.
  5. Unselect the Block command line pushes that expose my email check box.


回答2:

You have probably enabled (or it is enabled now by default) the email privacy feature of github.

It is detailed on this page at github help.

In short, there is a toggle that you can enable (which is enabled on your account) that prevents any push where the user is your actual email address. You can use an anonymized address instead (or choose to disable the feature).

Details for both options are available at the same page.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!