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?
I experienced the same error: GH007 message as well, and used the following to resolve the issue.
- Go to https://help.github.com/articles/setting-your-email-in-git/.
- Follow the Setting your email address for every repository on your computer.
- Open your GitHub account, and go to Settings > Emails.
- Select the Keep my email address private check box.
- Unselect the Block command line pushes that expose my email check box.
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.