git:// through proxy

Mark Kahn picture Mark Kahn · May 2, 2011 · Viewed 36.1k times · Source

I'm behind a firewall that is blocking port 9418 (git) and am trying to install some tools that are explicitly doing a checkout of git://github.com/..., so I can't switch to https for the checkout.

So I'm wondering if it's possible to redirect all traffic to port 9418 through a proxy and if so how :)

Answer

mppfiles picture mppfiles · Oct 5, 2012

If you are talking about git submodules, try this:

git config --global url.https://github.com/.insteadOf git://github.com/

...taken from here.

This way, you don't need to set any proxy, nor run any script.