此问题似乎是重复的,但实际上并非如此。只是细微的差别不断重复。 git一直对我说:“请告诉我你是谁”,即使在设置好之后也是如此。当我运行git commit
时,这就是我得到的。...
$ git commit
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
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]
http.proxy=proxy.XX.XX.XX:XXXX
我已经更改了我的姓名,电子邮件和代理,但是当我运行命令时它们看起来还不错,即使在.gitconfig文件中,我也可以看到已设置值。什么可能是丢失的东西,因为我根本无法承诺。每当它不断问我我是谁吗?
@@ sheu告诉了我一些更改,但仍然是相同的问题。当我设置--local
时,仍然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]
是错字。您不小心将user.mail
设置为没有e。通过使用[]在全局配置中设置user.email
来修复它
git config --global user.email "[email protected]"
您正在设置全局git选项,但是本地结帐可能已设置了替代项。尝试用git config --local <setting> <value>
再次设置它们。您可以查看本地结帐中的.git/config
文件,以查看结帐已定义了哪些本地设置。
您具有覆盖全局全局变量的本地user.name
或user.email
吗?
即使正确设置了配置,我仍然遇到这个问题。 git config