Search code examples
gitgithubgit-bashgit-clone

Unable to Connect to GitHub.com For Cloning


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

Solution

  • 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