2017-08-06 69 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 
相关问题