Commiter email address does not match in IntelliJ even changing it to correct one

前端 未结 5 1726
余生分开走
余生分开走 2021-01-31 04:04

When I try to push my commits from git repository to gerrit remote repository from Linux environment in IntelliJ idea I get the following error:

remote: ERROR:           


        
5条回答
  •  感动是毒
    2021-01-31 04:25

    As Frédéric Henri mentions, you have to configure properly your email through git config user.email or directly through editing the \.git\config file in your repo folder.

    One important thing that might go unnoticed is the fact that you have to update all the previous commits that contain the fault email. Git will complain about the email pattern but it won't mention which commit is the problematic one.

    You can use git rebase or git reset and then once you commit you can push successfully!

提交回复
热议问题