【发布时间】:2021-09-08 05:05:04
【问题描述】:
Git 无法推送一个文件的更改。在命令提示符下远程工作时,我执行了以下操作(步骤略):
- 克隆我们团队的主存储库
- git checkout chuck(这是我现有的分支)
- 开始编辑文件
- git add file_name(也许我不需要这个,因为它已经存在)
- git commit -m "一些评论"
但现在当我想推动改变时,我得到了
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
To https://github.com/my_company/our_repo/
! [remote rejected] chuck -> chuck (push declined due to email privacy restrictions)
我查看了网络 Github 电子邮件设置。它们被设置为私有,这就是它发生的原因。但我不清楚如何克服它。
【问题讨论】: