git 提交报错 does not match your user account
出现这个错误的原因是:
因为修改 git 的 user.name或user.email 然后 commit 了代码,然后 push 的时候报错。
所以我们修改 git 的 user.name 和 user.email 为要求的值。
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
然后执行以下代码,更新 提交 commit 代码的 author
git commit --amend --reset-author
以上
本文详细解释了在修改Git的user.name或user.email后遇到的提交错误'does not match your user account',并提供了具体的解决方案,包括如何正确配置Git的用户名和邮箱,以及如何更新已提交代码的作者信息。
1074

被折叠的 条评论
为什么被折叠?



