使用git commit命令时会提示"Please tell me who you are

使用git commit命令时会提示"Please tell me who you are

问题
当用命令git commit -m提交时会出现一下提示
使用git commit命令时会提示"Please tell me who you are
解决方法
在github官网中注册账号
网址:https://github.com
然后分别输入以下命令
git config --global user.email “邮箱”
git config --global user.name “名字”

然后就可以成功运行了。