GitHub Connection Timed Out

Multithreaded JavaScript has been published with O'Reilly!

Here's an error I received:

$ git clone git://github.com/creationix/nvm.git ~/nvm
Initialized empty Git repository in /home/thunter/nvm/.git/
github.com[0: 207.97.227.239]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

If you are getting this error, it could be that you are behind some sort of corporate firewalls blocking the git protocol. To get around this, you can update the URI by changing git to http:

$ git clone http://github.com/creationix/nvm.git ~/nvm
Initialized empty Git repository in /home/thunter/nvm/.git/
remote: Counting objects: 356, done.
remote: Compressing objects: 100% (205/205), done.
remote: Total 356 (delta 190), reused 299 (delta 143)
Receiving objects: 100% (356/356), 49.80 KiB, done.
Resolving deltas: 100% (190/190), done.

If you need to update your submodules, you'll want to edit your .gitsubmodules and make the same changes.

Tags: #git #github
Thomas Hunter II Avatar

Thomas has contributed to dozens of enterprise Node.js services and has worked for a company dedicated to securing Node.js. He has spoken at several conferences on Node.js and JavaScript and is an O'Reilly published author.