Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 拉分支无法连接错误_Git_Github - Fatal编程技术网

Git 拉分支无法连接错误

Git 拉分支无法连接错误,git,github,Git,Github,我希望有人能帮我一把,指出我在github上的错误。我已经将我的分支克隆到了我的机器上,我正试图从github上另一个用户的分支获取 >git remote add rally25rs git://github.com/rally25rs/SubSonic-3.0.git >git fetch rally25rs master github.com[0: 207.97.227.239]: errorno=No error fatal: unable to connect a soc

我希望有人能帮我一把,指出我在github上的错误。我已经将我的分支克隆到了我的机器上,我正试图从github上另一个用户的分支获取

>git remote add rally25rs git://github.com/rally25rs/SubSonic-3.0.git
>git fetch rally25rs master

github.com[0: 207.97.227.239]: errorno=No error
fatal: unable to connect a socket (No error)  

据我所知,这是正确的程序

您使用了错误的语法

 git remote add rally25rs git://github.com:rally25rs/SubSonic-3.0.git

这就是你想要的。注意:在github.com

之后,您在github上有ssh密钥吗?值得一提的是,我刚刚能够使用该URL克隆repo。Eimantas,我确实有。我以前把它搞砸了,但我收到了一条不同的错误消息。您的命令(
git remote add…&&git fetch…
)在一个空的、新初始化的repo中为我工作(
mkdir foo&&cd foo&&git init
)。您的操作系统、操作系统版本和Git版本是什么?此错误表示connect(2)返回<0,但未将errno设置为有用值。Windows 7和git 1.6.5.1.1367.gcd48