将文件提交到 GitHub 时出错
Error commiting files to GitHub
每当我尝试将文件提交到 github 时,我都会收到以下错误:
vanes@vanessaddiniz MINGW64 ~/HTML-CSS-and-JS---coursera/site (master)
$ git commit -m "Homepage"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
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 'vanes@vanessaddiniz.(none)')
这是我第一次尝试这样做。我刚刚在 coursera 上开始了一门课程,我完全按照视频中的方式做了所有事情,直到现在一切都很顺利。我该如何解决?任何人都可以帮助我,在此先感谢!
P.S:我正在使用 Windows。
Git 在提交到存储库时始终需要标识。它使用的标识是您的姓名或电子邮件地址。这将用于显示 Git 历史记录中属于用户的提交。上面的输出已经向您展示了您需要做什么。 运行 以下命令填写了您的姓名和电子邮件地址。
git config --global user.email "Your email"
git config --global user.name "Your Name"
在此之后您应该能够提交 git。
每当我尝试将文件提交到 github 时,我都会收到以下错误:
vanes@vanessaddiniz MINGW64 ~/HTML-CSS-and-JS---coursera/site (master)
$ git commit -m "Homepage"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
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 'vanes@vanessaddiniz.(none)')
这是我第一次尝试这样做。我刚刚在 coursera 上开始了一门课程,我完全按照视频中的方式做了所有事情,直到现在一切都很顺利。我该如何解决?任何人都可以帮助我,在此先感谢!
P.S:我正在使用 Windows。
Git 在提交到存储库时始终需要标识。它使用的标识是您的姓名或电子邮件地址。这将用于显示 Git 历史记录中属于用户的提交。上面的输出已经向您展示了您需要做什么。 运行 以下命令填写了您的姓名和电子邮件地址。
git config --global user.email "Your email"
git config --global user.name "Your Name"
在此之后您应该能够提交 git。