问题:

git push 的时候,提示要不就关闭 github 上面的 email 隐私,要不就使用无回复邮箱。

解决方法

设置项目本身的 email。

  1. 进入项目根目录
  2. git config user.email xxxx@users.noreply.github.com
  3. 回退上次的提交,git reset --soft HEAD~1
  4. 使用新的 email 来提交,git commit -m "xxx"
  5. git push

参考:

remote: error: GH007: Your push would publish a private email address.
https://blog.csdn.net/neuldp/article/details/76737010

标签: git

添加新评论