Tadas Davidsonas Tadas Davidsonas - 1 month ago 8x
Git Question

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

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: committer email address ***** [K
remote: ERROR: does not match your user account.[K

Even if I changed the settings to the correct ones for git and I can see that at: git config -l from console, it still picks the old "wrong" email.

What could be wrong?


you need to reconfigure your email

$ git config user.email <your email>
$ git commit --amend --reset-author

git commit --amend updates your last commits