【问题标题】:Export Proxy for Git on Centos 6.3在 Centos 6.3 上导出 Git 代理
【发布时间】:2013-06-06 23:50:24
【问题描述】:

我正在使用带有 Centos 6.3 的服务器

我想从 git 克隆一些东西,我在代理后面...

导出代理的命令:

git config --global http.proxy some.proxy

没有用...

我会回复这个错误:

ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly

一些想法?

谢谢

【问题讨论】:

    标签: git proxy centos


    【解决方案1】:

    http.proxy

    ssh:连接到主机 github.com 端口 22

    看到区别了吗? SSH 不会通过 HTTP 代理。最简单的办法就是改用 GitHub 的 HTTPS 协议。

    【讨论】:

    • @ciaodarwin 您确定您的代理设置正确吗?你检查过 repo URL 吗?
    • 是的! URL 存在...我会将 zip 文件下载到我的计算机并将它们复制到我的服务器(noob-way)
    【解决方案2】:

    在 /etc/envoirements 中导出代理

    http_proxy=http://someusername:somepass@someproxy.com:port
    https_proxy=https://someusername:somepass@someproxy.com:port
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-09
      • 2012-08-09
      • 2013-08-07
      • 2013-01-09
      • 2015-07-18
      • 2014-12-04
      • 1970-01-01
      • 2013-06-05
      相关资源
      最近更新 更多