我在Windows 7上购买并安装了Sublime text 2 我还安装了Git插件
现在,我在登台索引中添加了一个文件并且它有效... git status也有效...另一方面git commit不会:
这就是我得到的:
*** 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 'me@me-PC.(none)')
我不知道如何解决这个问题。
感谢, 拉雷什
答案 0 :(得分:3)
您可以在git-cmd会话或git bash会话中键入这些命令。
Git需要知道作者和提交者的姓名和电子邮件。
如果您已经安装了msysgit,您将找到git-cmd.bat或git bash会话的快捷方式,您可以在其中键入这些git config
命令。
但是,您还需要确保Git插件已知为HOME
所在的位置,HOME
默认情况下未被Windows设置。
答案 1 :(得分:0)
您将电子邮件设置为什么?
致命:无法自动检测电子邮件地址(得到'我@ me-PC。(无)')
根据错误消息,电子邮件是; me @ me-PC。根据它的外观,sublime插件在解析无效的电子邮件时遇到问题。
请仔细检查您的电子邮件:
git config -l