. Advertisement .
..3..
. Advertisement .
..4..
The error
! [remote rejected] master -> master (push declined due to email privacy restrictions)
error: failed to push some refs to '[email protected]:FranckFreiburger/vue-resize-sensor.git'
git did not exit cleanly (exit code 1) (3838 ms @ 12/04/2017 21:23:11)
occurred when I pull my commits on GitHub. I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the push declined due to email privacy restrictions issue? Much appreciate your support.
The cause: It occurs the Error: push declined due to email privacy restrictions because you are not permitted to push a commit to the remote repository since doing so might expose your private e-mail address.
Solution: Do it this way:
Emails
area.Go to https://github.com/settings/emails.
donotreply
email ID in the fieldKeep my email addresses private
.git terminal
and enter the following command to set yourdonotreply
email ID:This could be caused by a new GitHub Setting that blocks command-line pushes that expose email addresses.
You can uncheck the “Block command-line pushes that expose email” box in your mail settings, and then push again.