Git无法识别user.name和user.mail(Windows 10)

Git无法识别user.name和user.mail(Windows 10),git,windows-10,Git,Windows 10,我在Windows10中使用git时遇到了一个奇怪的情况 虽然我已经使用 git config --global user.name "My name" git config --global user.email my@email.com 每当我尝试提交时,都会收到以下警告消息: Committer: "my_pc_username" <"my_pc_hostname"> Your name and email address were configured automatica

我在Windows10中使用git时遇到了一个奇怪的情况

虽然我已经使用

git config --global user.name "My name"
git config --global user.email my@email.com
每当我尝试提交时,都会收到以下警告消息:

Committer: "my_pc_username" <"my_pc_hostname">
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
最后,无论何时我与:

git config user.name
git config --global user.name
git config --system user.name
我得到了正确的答案(
我的名字
)。user.mail也一样

我正在使用GitBash2.7.3

非常感谢您的帮助。

您的.gitconfig显示一个“mail”而不是“email”字段,我想您像我一样掉进了一个副本中


右边的字段是“email”,也许您喜欢我在发出命令时输入错误

打开git bash并从中尝试它您使用什么来执行
git
命令?(即Git Bash、Git Cmd、Cmd等)Git_CONFIG env变量不是设置为某个值吗?(echo$GIT_CONFIG)的可能重复项
git config user.name
git config --global user.name
git config --system user.name