Wednesday, March 23, 2011

git behind a proxy

This gentleman's technique worked for me:

In short..
* Plop the connect and proxy files somewhere
* Edit proxy to point to connect and reference your proxy
* Export the GIT_PROXY_COMMAND environment variable

To use like so:
[sodo@computer ~]$ export GIT_PROXY_COMMAND=/home/sodo/proxy
[sodo@computer ~]$ git clone git://
Cloning into trendingtopics...
remote: Counting objects: 2794, done.
remote: Compressing objects: 100% (860/860), done.
remote: Total 2794 (delta 1853), reused 2792 (delta 1853)
Receiving objects: 100% (2794/2794), 475.10 KiB, done.
Resolving deltas: 100% (1853/1853), done.

No comments:

Feel free to drop me a line or ask me a question.