Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: fatal unable to auto-detect email address

Tags:

git-config

People also ask

What email should I use for git?

Git CLI setup: You could use any email address. But, you must have used an email address that is connected with your GitHub account. The email address linked with Github ensures that commits are attributed to you and appear in your contributions graph.


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

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.


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"

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