GIT Error:- expected committer email '' but found '[email protected]'

Karan Singla picture Karan Singla · Feb 10, 2015 · Viewed 41.2k times · Source

Git push is getting rejected with the following error message:

expected committer email '' but found '[email protected]'

I have already tried:

  1. setting use properties in .gitconfig file.
  2. trying git push making different clones of same repository.
  3. setting up whole system all together after formatting it.

But none has worked. What else can I do to resolve it.

Answer

Atul Soman picture Atul Soman · Sep 22, 2015

This worked for me

git config --global user.name "Correct Name" 
git config --global user.email [email protected] 
git commit --amend --reset-author