git重新配置user.name和user.email

1.查看Git所有配置

git config --list

2.删除全局配置项

(1)终端执行命令:

git config --global --unset user.name

(2)编辑配置文件:

git config --global --edit         #修改user.email

修改好以后再添加user.name

git config --global user.name "定义名称"
发布了147 篇原创文章 · 获赞 9 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/weixin_44049466/article/details/105213371