问题描述
git
提交修改是,提示未配置user.name
和user.email
,git config --list
查看git
配置,显示正确配置了。重新执行git config --global user.name "Your Name"
和git config --global user.email you@example.com
也无效
解决方法
可能是git
无法读取全局配置,具体没有深究,通过git config --local -l
查看本地配置,发现没有user.name
和user.email
。重新设置,解决问题
git config user.name "Your Name"
git config user.email you@example.com