为什么我的git clone请求超时?

时间:2013-08-17 01:32:22

标签: git

我在HackerNews上看到github前几天遇到了一些问题,但他们的状态页面目前没有显示任何问题。

我正在尝试克隆https://gist.github.com/wting/2839765。这篇博客文章 - http://blog.williamting.com/posts/2012/04/18/set-up-python-and-django-on-dreamhost/ - 和dreamhost wiki都说它应该像运行

一样简单
git clone git://gist.github.com/2839765.git ~/tmp

但是我的梦想主机和本地计算机的时机已经超时了。

[applewood]$ git clone git://gist.github.com/2839765.git ~/tmp
Cloning into /home/user/tmp...
gist.github.com[0: 192.30.252.140]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

我错过了什么?

1 个答案:

答案 0 :(得分:1)

你确定它是git://,据我所知你用它 git@github.com

无论如何git clone http://gist.github.com/2839765.git ~/tmp都有效。

修改:两个例子:

$ git clone http://gist.github.com/2839765.git
Cloning into '2839765'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.

$ git clone git@github.com:gist/2839765.git
Cloning into '2839765'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (7/7), done.
Resolving deltas: 100% (2/2), done.