git設置代理,參考文章:https://blog.csdn.net/tanningzhong/article/details/52817399
//socks5的代理
設置如下:
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消設置
git config --global --unset http.proxy
git config --global --unset https.proxy
win命令行設置代理,參考文章:https://segmentfault.com/a/1190000013587465
設置代理
set http_proxy=socks5://127.0.0.1:1080
set https_proxy=socks5://127.0.0.1:1080
set ftp_proxy=socks5://127.0.0.1:1080
取消代理
set http_proxy=
set https_proxy=
set ftp_proxy=
*設置代理後只對當前命令行窗口生效,重新打開CDM需要再次設置。