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

0 votes

Hi Guys,

I am getting this below error, when I tried to add at 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 "you@example.com"
  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)')

How can I solve this error?

Apr 29 in Git & GitHub by MD
• 24,500 points
167 views

1 answer to this question.

0 votes

Hi@MD,

When you installed git in your system first time, you have to set your user name and email. You can set your credentials using the below given command.

$ git config --global user.email "email_id"
$ git config --global user.name "user_name"

Hope this will help.

answered Apr 29 by akhtar
• 11,270 points

Related Questions In Git & GitHub

0 votes
1 answer

fatal: unable to access could not resolve host: GitHub

Hi@akhtar, This can be caused in incorrect proxy ...READ MORE

answered Apr 10 in Git & GitHub by MD
• 24,500 points
748 views
0 votes
1 answer

Error: git pull fails “unable to resolve reference” “unable to update local ref”

This happens when there are unnecessary files ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 9,940 points
4,758 views
0 votes
1 answer

gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository

The user account making that command does ...READ MORE

answered Aug 13, 2018 in Git & GitHub by Kalgi
• 51,850 points
387 views
0 votes
0 answers
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
0 votes
1 answer