fatal Error: unable to auto-detect email address (got ‘tim@newton.(none)’) [Solved]

Problem Description.

Using git commit -m “wrote a readme file”, I encountered this problem

** 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 ‘tim@newton.(none)’)

Solution.

Find the .git folder in the project directory, open it, find the config file, and add the following information at the end.

[user]
email=your email
name=your name

Note: You may not be able to find the .git file in the project directory, that’s because this directory is hidden by default, let’s show it and it will be fine.

Similar Posts: