Tuesday, March 09, 2010

Git via Proxy

1. Create ~/bin and export path in .bashrc
2. Compile the connect.c and place binary to ~/bin
3. Create script for wrapping up "connect.c".
4. Set GIT variables to look for script.
export GIT_SSH="${HOME}/bin/socks-ssh"
export GIT_PROXY_COMMAND="${HOME}/bin/socks-gw"

http://threebytesfull.com/2008/04/git-with-and-without-proxy/