CodeBlog

Git 使用socks5代理

全局Git代理

git config --global http.proxy 'socks5://192.168.1.1:1080' 
git config --global https.proxy 'socks5://192.168.1.1:1080'

取消全局Git代理

git config --global --unset http.proxy
git config --global --unset https.proxy



只对 github.com 使用代理

git config --global http.https://github.com.proxy socks5://192.168.1.1:1080

取消github.com 代理

git config --global --unset http.https://github.com.proxy


Linux下使用全局代理

export ALL_PROXY=socks5://192.168.1.1:1080

Linux下取消全局代理

unset ALL_PROXY

发布:2020-12-23 09:19:42

鲁ICP备17013715号 min-Blog powered by ZPHP-MIN