Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 693
Karan Singla Avatar asked Feb 10 '15 06:02

Karan Singla


2 Answers

This worked for me

git config --global user.name "Correct Name"  git config --global user.email [email protected]  git commit --amend --reset-author 
like image 56
Atul Soman Avatar answered Sep 22 '22 09:09

Atul Soman


This work for me:

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

It will show the screen where you can edit the commit message, after edit or keep it as it is, then press escape and then :wq and hit enter.

Then:

git push 
like image 40
Jaydeep Shil Avatar answered Sep 21 '22 09:09

Jaydeep Shil