RSS Amplifier

Dave’s Blog · May 3, 2010

using git with a proxy

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Some of us are stuck behind a corporate firewall, but need to access all the great little github plugins through git! So what do you do?

Some of us are stuck behind a corporate firewall, but need to access all the great little github plugins through git! So what do you do?

Create the following wrapper:

!/bin/sh
Put your own values
PROXY_IP=127.0.0.1
PROXY_PORT=1090
nc -x${PROXY_IP}:${PROXY_PORT} -X5 $*

add this to your ~/.profile or ~/.bash_rc or whatever you use:

export GIT_PROXY_COMMAND=~/bin/proxy-wrapper

I stole this solution from http://blogs.gnome.org/juanje/2009/07/17/git_behind_proxy/

Read on /code/2010/05/03/using-git-with-a-proxy.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.