本文介绍了无法连接到GitHub.com进行克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图克隆,但我得到以下当我在我的Git Bash中输入命令时出现以下消息:
$ b $ pre $ git clone git://github.com/angular/angular- phonecat.git
克隆到'angular-phonecat'...
致命:无法连接到github.com:
github.com [0:204.232.175.90]:errno =没有错误


解决方案

您可能在防火墙后面。尝试通过https进行克隆 - 有更高的机会不被阻止:

  git clone https://github.com/angular /angular-phonecat.git 


I am trying to clone the angular-phonecat git repository, but I am getting the following message when I enter the command in my Git Bash:

$ git clone git://github.com/angular/angular-phonecat.git
Cloning into 'angular-phonecat'...
fatal: unable to connect to github.com:
github.com[0: 204.232.175.90]: errno=No error
解决方案

You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked:

git clone https://github.com/angular/angular-phonecat.git

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

08-14 18:09