git push 报错 ---error: commit 8aa8e31: email address [email protected] is not registered in your

git push 报错:
error: commit 8aa8e31: email address [email protected] is not registered in your account,

git push 报错 ---error: commit 8aa8e31: email address [email protected] is not registered in your
错误是说邮箱没有注册,可是用git config 查看了user.email 和user.name 都有内容啊。

解决

重新git config --global user.name 和user.email 然后需要 git commit --amend --reset-author
然后就可以提交了

git push 报错 ---error: commit 8aa8e31: email address [email protected] is not registered in your

(为啥我每次提交总是要遇到问题,叹气)