Why do I get “unable to connect a socket” when I try to clone via a git URL?

前端 未结 3 1406

When I try to clone a project from the GitHub, it gives me the following error.

:git clone git://github.com/project.git
github.com[0: 207.97.227.239]: errno         


        
相关标签:
3条回答
  • 2020-12-16 11:47

    Uku Loskit is right about the port being blocked. The solution is to set up your remote's URL without using git://

    I use: https://github.com/user/project.git or git@github.com:user/project.git

    0 讨论(0)
  • 2020-12-16 11:58

    I have the same problem. This is because port 9418 is blocked. If you have directadmin, open port 9418 in csf firewall and restart it.

    0 讨论(0)
  • 2020-12-16 12:03

    Looks like there is a network problem because the git protocol, by default, uses the port 9418. Looks like your traffic is blocked on that port.

    0 讨论(0)
提交回复
热议问题