git 使用代理

2019-01-20 23:04:00
CJL
原創
2514

全局代理,寫入配置
git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'

局部代理,進入git庫

git config --local http.proxy 'socks5://127.0.0.1:1086'


清除配置
git config --global --unset http.proxy
git config --global --unset https.proxy

臨時代理
ALL_PROXY=socks5://127.0.0.1:8888 git clone https://github.com/some/one.git




發錶評論
評論通過審核後顯示。
流量統計