问题描述:
Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
解决办法:
Git
simply detects you don't have the following section in your config files:
[user]
name = <your name>
email = <your mail>
<project_path>/.git/config
for the project specific config file.~/.gitconfig
the global config file
When you do:
git config --global user.name "Your Name"
git config --global user.email you@example.com