Git使用username@computername.localdomain作为WSL 2环境中的user.email

Git使用username@computername.localdomain作为WSL 2环境中的user.email,git,windows-subsystem-for-linux,Git,Windows Subsystem For Linux,在Windows10Build18985.1计算机中使用WSL2 我已经像往常一样配置了user.name和user.email $git config--global--list user.name=João Antonio Santana user.mail=joaosantana@outlook.com 但是,提交时,Git会显示以下消息: $git commit-m“commit inical” [master(root提交)5f3fcd5]提交无效 提交人:乔·安东尼奥·桑塔纳 您的

在Windows10Build18985.1计算机中使用WSL2

我已经像往常一样配置了
user.name
user.email

$git config--global--list
user.name=João Antonio Santana
user.mail=joaosantana@outlook.com
但是,提交时,Git会显示以下消息:

$git commit-m“commit inical”
[master(root提交)5f3fcd5]提交无效
提交人:乔·安东尼奥·桑塔纳
您的姓名和电子邮件地址已根据自动配置
在您的用户名和主机名上。请检查它们是否准确。
您可以通过显式设置来抑制此消息:
git config--global user.name“Your name”
git config--全局user.emailyou@example.com
执行此操作后,您可以通过以下方式修复用于此提交的标识:
git提交--修改--重置作者
1个文件已更改,0个插入(+),0个删除(-)
创建模式100644 courloo.tex
git日志
显示此电子邮件条目:

$git日志
提交5f3fcd5f80ee0053636f706c0242f7f27f681aa5(主机->主机)
作者:乔·安东尼奥·桑塔纳
日期:2019年9月22日星期日13:56:45-0300
犯罪

为什么Git会忽略
.gitconfig
user.email
的设置,以及如何消除这种情况?

user.mail
!=
user.email
@tkausl噢,我的天。。。它从我身边经过,我没有意识到我的错误。非常感谢。如果你把它作为一个答案,我会非常高兴地标记它现在。