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  命名

 

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