Member-only story

How to resolve a GitHub error “push declined due to email privacy restrictions” when you try to push a change

Bryant Jimin Son
2 min readFeb 25, 2021

--

How to fix a “push declined due to email privacy” issue in GitHub

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

You can find this under Settings → Emails

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:

--

--

Bryant Jimin Son
Bryant Jimin Son

Written by Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.

No responses yet