GIT Error:- expected committer email '' but found 'karan@xyz.com'

后端 未结 6 2048
旧巷少年郎
旧巷少年郎 2020-12-29 07:48

Git push is getting rejected with the following error message:

expected committer email \'\' but found \'karan@xyz.com\'

I have already tri

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 08:02

    This work for me :
    git config --global user.name "Correct Name" 
    git config --global user.email name@email.com 
    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
    git push
    

提交回复
热议问题