1

There's an error while trying to push a project to GitHub. The Setting of "Keep my email address private" is checked, and the "Block command line pushes that expose my email" is checked. What's the solution?

I successfully created the project 'MyActivity' on GitHub, but the initial push failed:

remote: error: GH007: Your push would publish a private email address.

Event log screenshot

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
yov_dev
  • 21
  • 1
  • 6

1 Answers1

0

You need to set an email address for Git to use. Use your GitHub-provided email. For example, git config --global 2333223+username@users.noreply.github.com. You can find that in your email settings page.

After setting the email in Git, delete the already-created project on Git, and start the sharing process again.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Derskeal
  • 11
  • 4