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

前端 未结 3 1405

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

提交回复
热议问题