git: fatal unable to auto-detect email address

user2428094 picture user2428094 · Sep 4, 2014 · Viewed 207.5k times · Source

I just cannot commit with git on Ubuntu 14.04

Error message is:

git: fatal unable to auto-detect email address (got "some wrong email")

I tried git-config with and without the --global option setting user.name and user.mail but nothing works

Answer

Jofe picture Jofe · Dec 5, 2014

Probably a typo mistake: set user.mail with no e. Fix it by setting user.email in the Global Configuration with

$ git config --global user.email "[email protected]"

Already been asked: Why Git is not allowing me to commit even after configuration?

To be sure Run:

$ git config --local -l