案发现场
git push 时发生
...
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
...
解决方案
方案一 取消勾选Block command line pushes that expose my email
Settings
Emails
-
Block command line pushes that expose my email
-
方案二 取消Keep my email address private
,就是将邮箱公开
- Open your GitHub account, and go to
Settings -> Emails
- Select the
Keep my email address private
check box.