views:

1452

answers:

5

I'm a little hesitant to post this, as I'm not completely sure what I'm doing. Any help would be wonderful.

I'm on a computer with a firewall/filter on it. I can download files without any difficulty. When I try to clone files from Github, though, the computer just hangs. Nothing happens. It creates a git file in the folder, but the key files don't get loaded in. For context, I'm working on a Rails app, trying to load in Restful Authentication.

Have any of you dealt with this? Any suggestions for getting the clone to work? Disabling the firewall might be an option, but if I can do something without going through that process, I'd appreciate it.

+3  A: 

The git:// protocol uses port 9418, so you should make sure your firewall allows outbound connections to this port.

Greg Hewgill
+5  A: 

Github supports cloning using both the git protocol over port 9418 and HTTP over port 80. Using the later is very slow (Reference). You should open port 9418 on your firewall or use HTTP cloning otherwise.

zvikara
+1  A: 

If you're firewalled out of existence and want the speed of git, I use something like

$ ssh rdp@some_host -L9418:github.com:9418 # run in one windows

then git clone git://github.com/jruby/jruby.git

becomes

$ git clone git://localhost/jruby/jruby.git

rogerdpack
+1  A: 

Or... just change the "git://" prefix to "http://"

Eric Kramer
A: 

I'm use git clone [email protected]:xxx.user/xxx.proj

insidepower