Git上初次提交项目,报Please tell me who you are错误

   在git上初次提交项目时,报了一个Please tell me who you are...等等错误,如图所示

Git上初次提交项目,报Please tell me who you are错误

在网上搜索一下,找到了解决方法.特此记录下来.

打开你自己安装Git目录下的git - bash,输入命令

git config --global user.email "你的邮箱"  

git config --global user.name "你的名字"

Git上初次提交项目,报Please tell me who you are错误

其实报错信息已经给我们很好的提示.输入这两行命令,再Commit就可以了.