当前位置: 代码迷 >> 综合 >> 【Exception】remote: error: GH007: Your push would publish a private email address.
  详细解决方案

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

热度:64   发布时间:2024-02-12 18:51:05.0

案发现场

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.
  相关解决方案