. Advertisement .
..3..
. Advertisement .
..4..
I’m facing the error ”fatal: unable to auto-detect email address” when I tried to add at the staging area.
$ git commit linux.txt -m "First commit"
warning: LF will be replaced by CRLF in linux.txt.
The file will have its original line endings in your working directory
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'None.(none)')
Does anyone have any suggestions for the problem below: fatal: unable to auto-detect email address – How to correct it?
The cause: I think the cause of this error is that you forget setting your user name and email address when you installed git on your system first time.
Solution: You can fix this error by setting your user name and email address. Using the command provided below, you can set your login information: