无法自动检测电子邮件地址 [英] Unable to auto-detect email address
问题描述
我是SmartGit的新手。我无法通过存储库进行提交,我收到的消息是:
I'm new to SmartGit. I can't commit through my repository, the message I'm receiving is:
Unable to auto-detect email address (got 'Arreane@Arreane-PC.(none)')
*** 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
I使用不同的电脑,但如果我在家里承诺它承诺并完美推动,我不知道这是否是问题的原因。
I'm using a different PC, but if I commit at home it commits and pushes perfectly, I don't know if this was the cause of the problem.
我'已经搜索过,其他人说要编辑 .git / config
文件,但是我找不到这个文件。
I've searched around and others say to edit the .git/config
file, but I cannot find this file.
我错过了什么?
推荐答案
嗯,这个信息几乎不言自明。您没有告诉git您的姓名和电子邮件地址是什么。
Well, the message is pretty much self-explanatory. You did not tell git what your name and email address is.
打开命令行并输入:
Open a command line and type:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
当然,您应该输入您的真实姓名和电子邮件地址。
然后git知道你是谁,并且能够将这些信息插入到你的提交中。
Of course you should enter your real name and email. Afterwards git knows who you are and is able to insert this information in your commits.
好像smartgit不会将git二进制文件添加到你的路径中。您必须将其路径添加到PATH环境变量,或者首先更改为相应的目录。你可以在这里找到一个截屏: http://blog.dragndream.com/?p=97
Seems like smartgit does not add the git binary to your path. You have to add its path to the PATH environment variable or first change to the corresponding directory. You can find a screencast here: http://blog.dragndream.com/?p=97
这篇关于无法自动检测电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!