Git相关配置
mingzaily / 2021-10-20
用户名邮箱设置
系统级别
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