设置用户名和邮箱(全局)#
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱"
查看当前 terminal 的配置#
git config --list
启用代理#
# 使用socks端口启用代理
git config --global http.proxy 'socks5://127.0.0.1:7890'
git config --global https.proxy 'socks5://127.0.0.1:7890'
# 设置
git config --global http.proxy 'http://127.0.0.1:12346'
git config --global https.proxy 'http://127.0.0.1:12346'
git config --global http.proxy 'http://127.0.0.1:7890'
git config --global https.proxy 'http://127.0.0.1:7890'
# 查看
git config --global --get http.proxy
git config --global --get https.proxy
# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy