git设置代理,win命令行设置代理

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需要再次设置。

猜你喜欢

转载自blog.csdn.net/u012081284/article/details/103761442
今日推荐