2017-08-06 62 views
1

我最近在Coursera.com上啓動了HTML,CSS和JAVASCRIPT課程.. 我正面臨一些錯誤。我希望你們這些人能幫助我..Git Github.com HTML

每當我使用git commit -m "WHATEVER"命令我得到一個錯誤這樣的..

C:\Windows\System32\coursetest>git commit -m "Page" 

*** 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 'Shantanu 
[email protected](none)') 

C:\Windows\System32\coursetest\site>git commit -c "Page" fatal: could 
not lookup commit Page 

請幫助...

感謝提前:)

+2

的可能的複製[ git錯誤「請告訴我你是誰。」和Heroku](https://stackoverflow.com/questions/34517434/git-error-please-tell-me-who-you-are-and-heroku) – phd

+1

這應該是每個G​​it教程中首先要講的東西之一。該錯誤消息還告訴您要修復該錯誤的內容。 – MarthyM

回答

3

這是正常的不用擔心,您必須設置usernameemail第一次Git設置。在這裏看到更多https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

從DOC:當您安裝Git是設置你的用戶 姓名和電子郵件地址,你應該做的

的第一件事。因爲每一個git的承諾 使用該信息這一點很重要,這是不可改變烤成提交您 開始創建:

$ git config --global user.name "Your name goes here" 
$ git config --global user.email "Your_email_address_goes_here" 

要驗證您所設置的設置,

git config --list 
相關問題