Impressions27 Mar 2012 12:23 pm

The easiest way of using git behind a proxy is using tsocks. It is just Straightforward:

1 – Install tsocks

2 – Configure tsocks by creating a /etc/tsocks.conf like this:

local = <localnet>/
server = proxy_ip
server_type = 5
server_port = proxy_port

3 – Use it:

$ tsocks git pull

Just that!

I had also tried the proxy using the GIT_PROXY_COMMAND=”/usr/bin/proxy-wrapper

where proxy-wrapper is

nc -xproxy_addreess:proxy_port -X5 $*

But IMHO tsocks is more convenient because it is not needed to set and unset GIT_PROXY_COMMAND every time.


Trackback this Post | Feed on comments to this Post

Leave a Reply