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, 2020 in Git & GitHub by MD
• 95,460 points
13,900 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, 2020 by akhtar
• 38,260 points

Related Questions In Git & GitHub

0 votes
1 answer

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

Hi@akhtar, In the Git server, you need to set ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,460 points
4,693 views
+1 vote
2 answers

fatal: unable to access could not resolve host: GitHub

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

answered Apr 10, 2020 in Git & GitHub by MD
• 95,460 points
153,324 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
• 10,620 points
18,886 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,053 views
+2 votes
1 answer
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

answered Sep 4, 2020 in Git & GitHub by akhtar
• 38,260 points
1,134 views
0 votes
1 answer

How to reset the changes in Git?

Hi@MD, Reset command can be used to undo ...READ MORE

answered Nov 20, 2020 in Git & GitHub by akhtar
• 38,260 points
762 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP