git Please tell me who you are解決方法

在git建立項目時出現,
是由於在建立git文件夾的時候信息不完善致使的
下圖是正確
在git建立項目時出現,
是由於在建立git文件夾的時候信息不完善致使的
下圖是正確
1.git init
2.git config user.name "someone"
3.git config user.email "someone@someplace.com"
4.git add *
5.git commit -m "some init msg"
*** Please tell me who you are.git


Runide


  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"this


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)')it


因此解決方法是當出現這個上述提示後 接着補充
你在命令行中執行
git config --global user.email "你的郵箱"
git config --global user.name "你的名字"
(注意 「 前面是有空格的)
輸入完後再接着執行git commit 便可成功!
 email

相關文章
相關標籤/搜索