Error info:
- remote: GitLab: You cannot push commits for 'xxx@xxxx.com'. You can only push commits that were committed with one of your own verified emails
解决:
- 提交的email 和指定的email 不一致
- 回滚到提交之前的版本,并修改email
#查看提交记录可以查看之前替提交成功的email 是什么, git log #回滚到指定版本,注意记得保存修改过的代码,回滚会把未提交的代码也更新掉 git reset --hard f84a11bd80e82b870c4f4111a49170282d9cXXXX #修改对应的email git config user.email XXXX@XXXX.com #查看修改结果 git config user.email
- 重新提交代码