无法自动检测电子邮件地址

在使用git commit -m命令时显示,无法自动检测电子邮件地址

先查看自己的电子邮件地址在不在
git config user.name
git config user.email

要是不在修改一下,不行重置一遍
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"