Git推送错误:与您的用户帐户不匹配 [英] Git push error: does not match your user account
本文介绍了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:参考文献/对/< my_branch>
但是在git push之后出现以下错误:
remote:错误:在提交b6b74fff7850c4b61a5535519959b1ab58ca6fa9
remote:错误:提交者电子邮件地址aaa @ aaa
remote:错误:与您的用户不符帐户。
remote:错误:
remote:错误:当前已注册以下地址:
remote:错误:bbb @ bbb
remote:错误:
remote:错误:要注册电子邮件地址,请访问:
remote:错误:http:// xxxxxxxx
在Gerrit注册的bbb电子邮件,对不对?所以...检查aaa @ aaa是否是您正确的电子邮件并在Gerrit中注册它:
$ b $ ol <$> $ b
您将收到一封[Gerrit Code Review]电子邮件验证电子邮件,按照说明为您的用户添加aaa @ aaa电子邮件地址帐户。
I executed the following commands:
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>
But I got the following error after the "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
I have no idea how to fix it.
解决方案
If I understood correctly, (aaa@aaa) is different from bbb@bbb e-mail which is registered in Gerrit, right? So... check if aaa@aaa is your correct e-mail and register it in Gerrit:
- Go to Gerrit
- Click on "YOUR NAME" (up right)
- Click on "Settings"
- Click on "Contact Information"
- Click on "Register New Email..."
- Fill the field with aaa@aaa and click on "Register"
You'll receive a "[Gerrit Code Review] Email Verification" e-mail, follow the instructions to add the aaa@aaa email address to your user account.
这篇关于Git推送错误:与您的用户帐户不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文