试玉要烧三日满,辨材须待七年期。——白居易《放言五首·其三》
用户名邮箱设置
系统级别
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
仓库级别
git config --local user.name "xxx"
git config --local user.email "xxx@xxx.com"
代理设置
添加代理
git config --local http.proxy "http://127.0.0.1:7890"
git config --local https.proxy "http://127.0.0.1:7890"
删除代理
git config --local --unset http.proxy
git config --local --unset https.proxy