Git设置HTTP/HTTPS代理服务器

Git设置HTTP/HTTPS代理服务器

git config --global http.proxy http://localhost:port
git config --global https.proxy https://localhost:port
其中,localhost为服务器地址,port为服务端口

实例

这里以设置本地代理服务127.0.0.1:1080为例。
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

 

 
posted @ 2020-05-31 11:32  余生以学  阅读(3033)  评论(0编辑  收藏  举报