操作在300000毫秒后超时,并且在"git clone"上收到0个字节中的0个字节. [英] Operation timed out after 300000 milliseconds with 0 out of 0 bytes received on "git clone"

查看:204
本文介绍了操作在300000毫秒后超时,并且在"git clone"上收到0个字节中的0个字节.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 18.04上使用git,当我尝试克隆存储库时,出现了下一个问题.该命令不起作用,使我再次出现此错误:

I'm using git on my Ubuntu 18.04 and when I try to clone a repository I got the next problem. The command don't work and get me back this error:

fatal: unable to access 'https://github.com/myuser/myproject.git/': Operation timed out after 300000 milliseconds with 0 out of 0 bytes received

我已经尝试了其他网站上的其他git存储库,并得到了相同的结果.我重新安装了git,但是没有办法.谢谢您的帮助,对不起我的英语,我现在正在学习.

I already tried with other git repositories from other websites and got the same. I reinstalled git but no way. Thank you for your help and sorry for my English, I'm learning just now.

推荐答案

这通常与代理问题有关.
仔细检查:

This is usually related to a proxy issue.
Double-check:

env|grep -i proxy
git config -l | grep -i proxy

但这并不能解释为什么push起作用,而clone不起作用.

But that would not explain why push works, and clone does not.

如果是这样,请检查这种情况,并确保没有其他程序/IDE进行推送,在尝试拉/克隆时.

If so, check this case, and make sure you don't have other programs/IDE doing a push, while you are trying a pull/clone.

这篇关于操作在300000毫秒后超时,并且在"git clone"上收到0个字节中的0个字节.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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