git 默认的名字和账号

1.添加

$ git config --global user.name "yourName"$ gi config --global user.email "[email protected]"

2.修改

(1)覆盖的形式:

 
  1. $ git config --global user.name "yourName"

  2. $ git config --global user.email "[email protected]"

(2)替换的形式:

$ git config --global --replace-all user.name "yourName" $ git config --global --replace-all user.email "[email protected]"

3.删除

$ git config --global --unset user.name "yourName"$ git config --global --unset user.email "[email protected]"

4.查看

(1)查看所有:

$ git config --list

(2)查看指定信息:

$ git config user.name$ git config user.email
发布了123 篇原创文章 · 获赞 47 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/u010919083/article/details/102701238