关于如何解决git中unable to auto-detect email address 问题

经过尝试,无论是更改config内容,还是git config --global user.name "NAME"都没有用

 

参考Stack Overflow中的回答,在git bash中输入

git config --replace-all user.email "you@domain.com"
git config --replace-all user.name "github_username"

检查是否更改正确:

git config --local -l

在信息的最后两行出现了user.email和user.name

 

posted @ 2021-06-05 17:27  Adaxy  阅读(197)  评论(0编辑  收藏  举报