push declined due to email privacy restrictions github推送失败

$ git push origin master

Counting objects: 251, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (238/238), done.

Writing objects: 100% (251/251), 12.20 MiB | 132.00 KiB/s, done.

Total 251 (delta 13), reused 0 (delta 0)

remote: Resolving deltas: 100% (13/13), done.

remote: error: GH007: Your push would publish a private email address.

remote: You can make your email public or disable this protection by visiting:

remote: http://github.com/settings/emails

To https://github.com/langyuxiansheng/MyProject.git

 ! [remote rejected] master -> master (push declined due to email privacy restrictions)

error: failed to push some refs to 'https://github.com/langyuxiansheng/MyProject.git'

推送失败出现了以下情况:

_CN7I({9B_RLFV@C1IQQ1@C.png

 就是图中的红圈部分,去掉就可以了。

这样子就可以正常推送了。 

参考:http://hao2013.cn/?id=44