fatal: unable to auto-detect email address (got 'Mr.he@DESKTOP-KLAS039.(none)')

git 提交代码报错:


image.png

解决:配置下你的邮箱和用户名,就可以正常提交
2行命令:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

你可能感兴趣的:(fatal: unable to auto-detect email address (got 'Mr.he@DESKTOP-KLAS039.(none)'))