Git添加、删除本地的用户和邮箱

1.添加

$ git config --global user.name "yourName"
$ git config --global user.email "your@email.com"

2.删除

git config --global --unset user.name "yourName"
git config --global --unset user.name "yourName"

添加删除是否成功,有两种方式:
【1】是控制台回车后没有报错,即成功。
【2】C盘 --> use(或用户) --> 电脑用户 --> .gitconfig;就可以查看。

posted @ 2021-12-05 19:56  小洋ssr  阅读(1293)  评论(0编辑  收藏  举报