gitgithub

Error "Your push would publish a private email address"


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?


Solution

  • Warning: This will expose your email address! Each commit includes the email address of the committer and for public repositories, this information is publicly available.

    --

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

    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.