我执行以下命令:混帐推错误:不匹配您的用户帐户
git pull <partner_remote> <partner_branch>
git config user.email <my_email>
git config user.name <my_name>
git commit --amend --reset-author
git push <my_remote> HEAD:refs/for/<my_branch>
但我得到了“混帐推”后,出现以下错误:
remote: ERROR: In commit b6b74fff7850c4b61a5535519959b1ab58ca6fa9
remote: ERROR: committer email address [email protected]
remote: ERROR: does not match your user account.
remote: ERROR:
remote: ERROR: The following addresses are currently registered:
remote: ERROR: [email protected]
remote: ERROR:
remote: ERROR: To register an email address, please visit:
remote: ERROR: http://xxxxxxxx
我不知道如何解决它。
你有没有或最近有人更改你的Git帐户中的元数据? –
不,我的帐户只有我可以使用,其他人无法使用我的帐户。 – LayaCCC
上面的那些Git命令(以'git pull'开始......)在错误之前还是之后运行?如果之后,那么问题很可能是您更改了您的用户凭据,并且回购主机不喜欢它。 –