相关疑难解决方法(0)

Git推送错误:与您的用户帐户不匹配

我执行了以下命令:

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>
Run Code Online (Sandbox Code Playgroud)

但是在“ git push”之后出现了以下错误:

remote: ERROR:  In commit b6b74fff7850c4b61a5535519959b1ab58ca6fa9
remote: ERROR:  committer email address aaa@aaa
remote: ERROR:  does not match your user account.
remote: ERROR:
remote: ERROR:  The following addresses are currently registered:
remote: ERROR:    bbb@bbb
remote: ERROR:
remote: ERROR:  To register an email address, please visit:
remote: ERROR:  http://xxxxxxxx
Run Code Online (Sandbox Code Playgroud)

我不知道如何解决它。

git gerrit

5
推荐指数
3
解决办法
1万
查看次数

标签 统计

gerrit ×1

git ×1