Skip to content
Discussion options

You must be logged in to vote

Hello,

The error you're seeing (GH007: Your push would publish a private email address) occurs because the commit history in your Azure DevOps repository contains your private email address, and GitHub has protection enabled to prevent it from being exposed.

You do not need to permanently disable your email protection. You have several options, from the quickest to the most secure:


Option 1: The Quickest (Temporary)

  1. Go to GitHub → Settings → Emails.
  2. Temporarily uncheck the box that says "Keep my email address private".
  3. From your local command line, run the git push that previously failed. It should now work.
  4. Immediately return to your GitHub settings and re-enable the privacy checkbox.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rfalanga
Comment options

@alexhozt
Comment options

Answer selected by rfalanga
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage
3 participants