我真挺笨的, 以前老用以下命令,不解决问题

错误方式
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
正确方式:
git config --global http.proxy 'socks5://127.0.0.1:1080'
http 和 https 两种方式,均可以
网友评论