設定使用者名稱和電子郵件(全局)#
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