问题:
git push 的时候,提示要不就关闭 github 上面的 email 隐私,要不就使用无回复邮箱。
解决方法
设置项目本身的 email。
- 进入项目根目录
git config user.email xxxx@users.noreply.github.com
- 回退上次的提交,
git reset --soft HEAD~1
- 使用新的 email 来提交,
git commit -m "xxx"
git push
参考:
remote: error: GH007: Your push would publish a private email address.
https://blog.csdn.net/neuldp/article/details/76737010