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

前端 未结 5 1630
余生分开走
余生分开走 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:47

    I encountered the same issue, when trying to push from Git to Gerrit. The possible conflict is because, the code got cloned from the login id of git and when trying to push, it is being cross-verified with Gerrit Credentials. These 2 being different, the conflict is thrown. Resolved it by running these 2 commands:

    • git config --global user.email "email@example.com"
    • git commit --amend --author ="Author Name <'email@address.com>"

提交回复
热议问题