git上传GitHub时报Please tell me who you are错误

原因
在git创建项目时出现,是因为在创建git文件夹的时候信息不完善导致的
错误

*** Please tell me who you are.


Run


  git config --global user.email "[email protected]"
  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: unable to auto-detect email address (got 'Administrator@MS-201610130300.(none)')

解决
所以解决方法是当出现这个上述提示后 接着补充

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

关键是:user.email和“你的邮箱”之间一定要有空格,否则会设置失败。

输入完后再接着执行git commit 即可成功!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章