git中config配置的增删改查操作

查:
查看git config 配置列表
$ git config --list 或者简写 $ git config -l

增:
添加git config配置
$ git config --global 命名 '值';

例如:


改:
如果这个命名存在也可以直接覆盖修改,还可以替换git config中已有的邮箱

$  git config --global --replace-all user.email "输入你的邮箱"
$  git config --global --replace-all user.name "输入你的用户名"

删:
删除命令

$   git config   --global --unset  命名

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章