1
2
3
4
5
6
7
8
9
10
11
12
13
14
| # 查看全局设置
git config --global -l
# 设置全局用户名/邮箱
git config --global user.name "username"
git config --global user.email "user@email"
# 设置全局代理
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
# 取消全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy
|