git commit -m "first commit"错误:unable to auto-detect email address

*** 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 'Administrator@PC-20150120BUBR.(none)')

Finally, see this blog

https://www.cnblogs.com/Traveller-Leon/p/6852680.html

Find the project directory .git folder, find the config file after opening, plus side in the last sentence
[the User]
Email = Email your
name = your name

Guess you like

Origin www.cnblogs.com/qlling/p/11491801.html