git代理设置

新增代理

git config --global http.proxy socks://127.0.0.1:20808
git config --global https.proxy socks://127.0.0.1:20808

取消设置

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

注意,不管是哪种类型的socks,在设置代理的时候都要写socks,不能写成socks5

git 

评论

  欢迎来访helloworld,博主无话可说,没有发布任何公告!

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×