git: fatal unable to auto-detect email address

Solution 1:

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

Solution 2:

Make sure you should be in your home directory not in local directory. while setting your username and e-mail ID.

git config --global user.email "[email protected]"
git config --global user.name "github_username"

Then follow the procedure on GitHub.

Solution 3:

If git config --global user.email "[email protected]" git config --global user.name "github_username"

Dont work like in my case, you can use:

git config --replace-all user.email "[email protected]"
git config --replace-all user.name "github_username"

Solution 4:

fatal: unable to auto-detect email address (got 'jsiddharth@TheDEN.(none)')

I ran the following,

git config --global user.email "[email protected]"
git config --global user.name "my name"
repo init -u https://<domainname>/platform/manifest