0
点赞
收藏
分享

微信扫一扫

【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
  • 【Exception】remote: error: GH007: Your push would publish a private email address._git


方案二 取消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.


举报
0 条评论