You cannot push commits with committer‘{xxx@email.com}’who is not exit among the registere
提代码时检测到邮箱不是被允许的邮箱,提交失败,原因是一开始是自己本地的Git名和邮箱,但是后面公司规范用户名和邮箱,而第一次commit的时候还是旧的,所以提交失败,需要修改到Git仓库允许的用户名和邮箱
先输入代码设置用户名和邮箱
git commit --amend --author="{username} <email>"
然后会出现此页面按后shift+zz 退出就可以了,最后再git push

所有评论(0)