JAVA_OPTS="$JAVA_OPTS -DsocksProxyPort"
export all_proxy=socks5://127.0.0.1:1086
原文链接:https://www.cnblogs.com/capiggue/p/5426810.html
以下使用http代理
git config --global http.proxy http://127.0.0.1:1086
git config --global https.proxy https://127.0.0.1:1086
以下使用socks5代理
git config --global http.proxy socks5://127.0.0.1:1086
git config --global https.proxy socks5://127.0.0.1:1086
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
原文链接:https://blog.csdn.net/u014568993/java/article/details/84308239