Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 11 of 14

Re: push declined due to email privacy restrictions

This is the perfect solution.

Copilot Lvl 2
Message 12 of 14

Re: push declined due to email privacy restrictions

This was EXACTLY what I needed. I couldn't figure out why nothing was being pushed. As soon as I unchecked that box, everything wents smoothly. Thank you!

Ground Controller Lvl 1
Message 13 of 14

Re: push declined due to email privacy restrictions

Go to Settings/Emails on your GitHub account and uncheck "Block command line pushes that expose my email"

Ground Controller Lvl 2
Message 14 of 14

Re: push declined due to email privacy restrictions

I had the same problem, and spent a long time fiddling until I realized that git wasn't taking the userid and email from *either* config file, but from the environment variables $GIT_AUTHOR_EMAIL and $GIT_AUTHOR_NAME (which I had long-since forgotten setting).

 

There seem to be at least four places to check (I *think* this may be the order git checks them in):

  • git commit --author "John Doe <jane@doe.com>"
  • environment variables $GIT_AUTHOR_EMAIL, $GIT_AUTHOR_NAME, etc.
  • .git/config in the current repo
  • ~/.gitconfig

 

For all I know, there may be more....