6

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

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.

Moha the almighty camel
  • 4,327
  • 4
  • 30
  • 53

2 Answers2

1

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

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

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

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I am blocked because of this beautiful error. I am unable to clone my repo to my Linux machine. I am trying this for several days. May be I will have to re-install the operating system, that will take lesser time I guess. – Remis Haroon - رامز Aug 23 '20 at 03:44
1

Had the same issue, couldn't really figure out the reason. but I solved by downgrading git to 2.21.2 (building it from source).