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 即可成功!

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