当我尝试通过代理服务器克隆Git仓库时,我收到连接超时错误.
git clone
http://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git
克隆到linux-2.6-imx ...
错误:连接到opensource.freescale.com:8080失败; 访问时连接超时http://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git/info/refs致命:HTTP请求失败
我使用了corkscrew并将我的git代理设置为服务器地址和端口.我还能如何通过代理下载或克隆Git仓库?
Pet*_*ans 10
你不需要开瓶器来访问代理服务器后面的http repo.
设置环境变量http_proxy
export http_proxy=http://<proxy>:<port>/
Run Code Online (Sandbox Code Playgroud)
然后git将使用http代理
另见http://roshansingh.wordpress.com/2008/08/29/using-git-behind-proxy/
| 归档时间: |
|
| 查看次数: |
12924 次 |
| 最近记录: |