无法从git.gnome.org进行克隆 [英] Cannot clone from git.gnome.org

查看:444
本文介绍了无法从git.gnome.org进行克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Ubuntu操作系统。
我尝试了从git.gnome.org克隆几个存储库,比如这样 -



git clone git://git.gnome .org / newcomers-tutorial
克隆到'newcomers-tutorial'...
致命:无法连接到git.gnome.org:
git.gnome.org [0:209.132。 180.184]:errno =连接超时



甚至尝试使用http:// -



git clone http://git.gnome.org/newcomers-tutorial
克隆到'newcomers-tutorial'...
致命的:http:// git .gnome.org / newcomers-tutorial / info / refs找不到:你在服务器上运行git update-server-info?



而如果我从github克隆任何其他回购,它成功克隆。
如 -



git clone https://github.com/arduino/Arduino.git
克隆到' Arduino'...
remote:计数对象:53558,完成。
remote:压缩对象:100%(617/617),完成。
^接收对象:11%(5996/53558),23.67 MiB | 1.41 MiB / s



我工作在一个代理之后,并且已经设置了它 -

  git config --global http.proxy $ http_proxy 

任何帮助?

解决方案

git协议使用一个特殊的端口(9418)可能会被阻止。



至于http克隆,> newcomers-tutorial repo 的网页中提到了一个 https url,而不是http:

  git clone https://git.gnome.org/browse/newcomers-tutorial 

确保首先设置您的https代理:

  git config --global https.proxy $ http_proxy 


I am working on an Ubuntu OS. I have tried cloning several repositories from git.gnome.org such as this -

git clone git://git.gnome.org/newcomers-tutorial Cloning into 'newcomers-tutorial'... fatal: unable to connect to git.gnome.org: git.gnome.org[0: 209.132.180.184]: errno=Connection timed out

And even tried with http:// -

git clone http://git.gnome.org/newcomers-tutorial Cloning into 'newcomers-tutorial'... fatal: http://git.gnome.org/newcomers-tutorial/info/refs not found: did you run git update-server-info on the server?

whereas if i clone any other repo from github it is successfully cloned. Such as -

git clone https://github.com/arduino/Arduino.git Cloning into 'Arduino'... remote: Counting objects: 53558, done. remote: Compressing objects: 100% (617/617), done. ^Cceiving objects: 11% (5996/53558), 23.67 MiB | 1.41 MiB/s

I am working behind a proxy and already have set it by -

git config --global http.proxy $http_proxy

Any help?

解决方案

The git protocol uses a special port (9418) which, is you are working behind a proxy, is likely to be blocked.

As for http cloning, the web page of the newcomers-tutorial repo mentions an https url, not an http one:

git clone https://git.gnome.org/browse/newcomers-tutorial

Make sure to set your https proxy as well first:

git config --global https.proxy $http_proxy

这篇关于无法从git.gnome.org进行克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆