#事故现场
执行git commit命令提示:"Please tell me who you are"
意思是,Git想知道提交代码的是谁,造成这个现象的原因可能是第一次提交代码,也有可能是长时间不操作,需要重新验证下。
#解决方案
在Git控制台输入一下命令
git config --global user.email "邮箱"
git config --global user.name "用户名"
再次执行git commit ,正常无误。
执行git commit命令提示:"Please tell me who you are"
意思是,Git想知道提交代码的是谁,造成这个现象的原因可能是第一次提交代码,也有可能是长时间不操作,需要重新验证下。
在Git控制台输入一下命令
git config --global user.email "邮箱"
git config --global user.name "用户名"
再次执行git commit ,正常无误。