Search code examples
git-config

git: fatal unable to auto-detect email address


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


Solution

  • 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