错误信息:
$ git commit -m "Basic user profile editing"
*** 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: empty ident name (for <(NULL)>) not allowed
解决方案:
一方面,查看环境变量,SET Home查看Home的值,然后来到Home的目录,配置全局的邮箱和密码。
git config --global user.name "youname"
git config --global user.email "youeamil@email.com"
最后可以通过 git config -l 这个命令查看已配置的用户名和邮箱信息
在本项目的git的config文件下,添加以下三行:
[user]
email = yourname@example.com
name = yourname