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

案发现场

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,就是将邮箱公开

  1. Open your GitHub account, and go to Settings -> Emails
  2. Select the Keep my email address private check box.

猜你喜欢

转载自blog.csdn.net/AV_woaijava/article/details/108119850