ITeye博客

使用http代理从github上下载项目

mahengyang · 2012-01-06 18:55 · git http代理 · 开源软件 · Markdown

当使用http代理上网的时候,从github上边下载项目时会报如下错误:

error:Failed connect to github.com:443;

这时可以设置一下git的http.proxy变量,如下:

git config --global http.proxy 192.168.1.1:8080

这样就能使用

git clone https://github.com/.../...

下载你所需要的项目了

评论(4)

  1. #4 楼 · henry_wu001 · 2014-05-04 12:25

    需要git server端的git支持http协议的,sourceforge就不支持。

  2. #3 楼 · kuchaguangjie · 2014-04-11 15:05

    好~~~~~~~~

  3. #2 楼 · mahengyang · 2012-05-15 17:57

    sourceforge没有试过,不过使用的协议都是一样的,应该只是url不一样

  4. #1 楼 · henry_wu001 · 2012-05-15 15:26

    你能下载 sourceforge上的git 工程吗? 不能吧,

评论功能维护中,当前仅展示历史评论。