标签:git socks ash lan -- 查看 -bash 存在 pre
socks5
协议代理git config --global http.proxy ‘socks5://127.0.0.1:10808‘
git config --global https.proxy ‘socks5://127.0.0.1:10808‘
http
/ https
协议代理git config --global http.proxy ‘http://127.0.0.1:10809‘
git config --global https.proxy ‘https://127.0.0.1:10809‘
git config --global --unset http.proxy
git config --global --unset https.proxy
最终设置的结果保存在: ~/.gitconfig
文件中.
[http]
proxy = socks5://127.0.0.1:10808
[https]
proxy = socks5://127.0.0.1:10808
标签:git socks ash lan -- 查看 -bash 存在 pre
原文地址:https://www.cnblogs.com/crayonsea/p/14766184.html