Member-only story
How to resolve a GitHub error “push declined due to email privacy restrictions” when you try to push a change
As you try to push a new change to GitHub with git push command, you might be surprised to find a following error message:
! [remote rejected] master -> master push declined due to email privacy restrictions
This is due to your email configuration page has the following checked: Block command line pushes that expose my email
To find this option, please follow this. Under top right corner, click your user icon. Then, click Settings
Then, click Emails.
While you can uncheck these checkbox, you can do it another way. Under Keep my email address private, you will see an email that looks like the following format: