Error "Your push would publish a private email address"
·
Answer a question
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 Stack Exchange, but no cigar. How can I solve this issue?
Answers
I experienced the same error: GH007 message as well and used the following to resolve the issue.
- Go to Setting your commit email address.
- 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.
This may expose your email address though.
更多推荐


所有评论(0)