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代理
猜你喜欢
转载自blog.csdn.net/qq_27538633/article/details/114788210
今日推荐
周排行