GitHub error gh007 with SQL Source Control

JoshBJoshB Posts: 2 New member
edited May 5, 2023 10:43PM in SQL Source Control
We recently switched from TFS to GitHub for our SQL repo. My account in GitHub has both "Keep my email address private" and "Block command line pushes that expose my email" turned on. It says it will use a GitHub no-reply email instead of my private email anywhere my email would appear.

I'm able to use GitHub with a dozen other repos in our account without issue. But when I try to seed our GitHub repo for objects in our SQL Server, I receive this error:

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

If I turn off "Block command line pushes that expose my email", I don't receive this error. But I can't tell why it would be adding my private email to any push, or why this push would warn me, but not other GH pushes in other repos tied to the same GH user name and email address. 


Tagged:

Best Answer

Answers

  • JoshBJoshB Posts: 2 New member
    Thanks. That seems to have fixed the issue. I had tried using the noreply email. I think where I got stuck is that I already had a local commit while I had GH set to use my public email. Doing the amend to change the previous commit before doing the fix, and using the noreply email for future commits got around the error.
Sign In or Register to comment.