zl程序教程

您现在的位置是:首页 >  工具

当前栏目

Git设置HTTP/HTTPS代理服务器

GitHTTPHTTPS 设置 代理服务器
2023-09-14 08:57:14 时间

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