http代理:
$ git config --global https.proxy http://127.0.0.1:1087
$ git config --global https.proxy https://127.0.0.1:1087
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
Linux下:使用HTTP代理
最新推荐文章于 2024-02-07 09:43:42 发布