gerri push git remote: ERROR: committer email address remote: ERROR: does not match your user accoun

gerri push git remote: ERROR: committer email address remote: ERROR: does not match your user accoun

原因如题,git邮箱配置错误

1.查看自己 gerrit 个人信息是否配置错误,用户->setting->profile信息无误后,

2.git config -l查看本地配置是否错误

3.ssh gerrit.iauto.com 查看是否可以访问gerrit

4.cat ~/.ssh/id_rsa.pub 查看公钥,同时在gerrit上,用户->setting->SSH_public_Keys选中ssh-rsa->delete ,重新把刚查看的公钥粘贴进去Add Key,重新生成账号信息(成功后应该会有邮件提醒)

5.备份自己修改的文件,然后git log查看提交记录的commit_id

6.git reset --hard 提交上一版commit_id(回退到上一版)

7.git pull(更新到最新一版)

8.恢复刚刚的备份

9.git status 查看修改的与库上差异文件,确认后git add要提交的部分 git commit编辑提交log信息

10. git push origin iautoandroid/master(本地分支):refs/for/iautoandroid/master(服务器分支)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值