git 使用代理

全局代理,寫入配置
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




文章分類