Tadas Davidsonas Tadas Davidsonas - 1 year ago 265
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?

Answer Source

you need to reconfigure your email

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

git commit --amend updates your last commits

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download