2

我在 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)')

我不知道如何解决这个问题。

谢谢, 稀有

4

2 回答 2

3

您可以在 git-cmd 会话或 git bash 会话中键入这些命令。

Git 需要知道作者和提交者的姓名和电子邮件。

kemayo/sublime-text-git第 246 期所述:

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

如果你安装了 msysgit,你会发现一个 git-cmd.bat 或一个 git bash 会话的快捷方式,你可以在其中输入这些git config命令。

但是,您还需要确保 Git 插件知道您HOME的位置,HOME而不是默认情况下由 Windows 设置。

于 2013-02-21T11:41:18.867 回答
0

你把邮箱设置成什么了?

致命:无法自动检测电子邮件地址(得到 'me@me-PC.(none)')

根据错误消息,电子邮件是;我@我-PC。 从外观上看,sublime 插件在解析无效电子邮件时存在问题。

仔细检查您的电子邮件:

git config -l 
于 2013-02-21T12:08:26.813 回答