这个问题看起来像是重复的,但事实并非如此。只是一个不断重复的细微差别。 git 不断告诉我:“请告诉我你是谁”,即使在设置之后也是如此。当我跑步时git commit
,这就是我得到的......
$ git commit
*** Please tell me who you are.
Run
git config --global user.email "[email protected] /cdn-cgi/l/email-protection"
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 'Obby@ObbyWorkstation.(none)')
但当我跑步时git config --global -l
,它给了我所有的详细信息......
$ git config --global -l
user.name=myname
[email protected] /cdn-cgi/l/email-protection
http.proxy=proxy.XX.XX.XX:XXXX
我已经更改了我的姓名、电子邮件和代理,但当我运行命令时它们看起来很好,即使在 .gitconfig 文件中我也可以看到这些值已设置。可能缺少什么,因为我根本无法承诺。每次它都会问我我是谁?
@sheu 告诉我一些我改变的东西,但仍然是同样的问题。当我设定--local
, still git commit
问我同样的问题。这是输出
$ git config --local -l
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
user.name=myname
[email protected] /cdn-cgi/l/email-protection
这是一个错字。你不小心设置了user.mail
没有e in e邮件。通过设置修复user.email
在全局配置中
git config --global user.email "[email protected] /cdn-cgi/l/email-protection"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)