Reading Time: < 1 minute
Push declined due to email privacy restrictions is an error on GitHub

Push declined due to email privacy restrictions is an error that you may receive if you are pushing code to GitHub.

This error occurs when..

To remedy this run these commands after you have found your noreply email within the GitHub Email Settings.

git config --global user.email "<Numeric Value>+<Your GitHub Username>@users.noreply.github.com"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push

See this Stack Overflow question for more details.

Sharing is caring!

Leave a comment