解决gitte提交报错 error: GE007: Your push would publish a private email address.
生活随笔
收集整理的這篇文章主要介紹了
解决gitte提交报错 error: GE007: Your push would publish a private email address.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤情況: gitte提交報錯,無法提交上去,報錯如下:
remote: Powered by GITEE.COM [GNK-6.0]
remote: error: GE007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: https://gitee.com/profile/emails
remote: error: hook declined to update refs/heads/master
error: failed to push some refs to 'https://gitee.com/ck_567/leet-code-practice.git'
To https://gitee.com/ck_567/leet-code-practice.git
! refs/heads/master:refs/heads/master [remote rejected] (hook declined)
Done
原因:因為在gitee里設置了不公開郵箱地址,同時禁止了命令行推送暴露個人郵箱
解決:需要設置gitte上找到允許推送的郵箱地址,然后設置在本地的git環境變量中。
- 在gitte設置中找到郵箱管理,如下:
- 將提交郵箱設置這里的郵箱拿出來設置到你本地,如下:
# 設置你的提交郵箱
git config --global user.email 3784276328_wsnbb@user.noreply.gitee.com
# 查看全部變量
git config -l
總結
以上是生活随笔為你收集整理的解决gitte提交报错 error: GE007: Your push would publish a private email address.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Dockerfile springboo
- 下一篇: Reject: HTTP ‘DELETE