码迷,mamicode.com
首页 > Web开发 > 详细

Git设置HTTP/HTTPS代理服务器

时间:2020-05-31 12:37:38      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:oca   www   tran   lan   div   href   本地   top   tar   

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

 

 

Git设置HTTP/HTTPS代理服务器

标签:oca   www   tran   lan   div   href   本地   top   tar   

原文地址:https://www.cnblogs.com/2018shawn/p/12996855.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!