今天在使用 github 时遇到了个问题，如下：
$ git push origin master Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 362 bytes | 72.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) 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 github.com:xiaomaoyun/test.git ! [remote rejected] master -> master (push declined due to email privacy restrictions) error: failed to push some refs to 'firstname.lastname@example.org:xiaomaoyun/test.git'
于是打开 settings，找到 Email 选项：
Block command line pushes that expose my email。
If you push commits that use a private email as your author email we will block the push and warn you about exposing your private email。
不要勾选此项，就可以正常的 push 了。