git 邮箱错误-git log 中发现 XXX@163.com邮箱不符合要求,请务必使用公司邮箱。

场景描述: 重新配置电脑之后,提交了git,邮箱发生错误。

git log # 查看日志
git reset 版本 # 回到之前的版本,版本回退
git config --global user.name 'username' # 更改用户名
git config user.name # 查看用户名
git config --global user.email 'email # 更改邮箱
git config user.email # 查看邮箱 
都执行完成之后,重新提交代码即可。
————————————————
参考:git 邮箱错误

原文地址:https://www.cnblogs.com/aspirant/p/12058441.html