Development/Git
From Syslinux Wiki
Tips and Tricks
Git through a proxy
You need to create a wrapper script.
To go through the proxy that supports only HTTP connect:
$ printf '#!/bin/sh\nexec nc -X connect -x proxy.bigcompany.com:3128 "$@"\n' > ~/bin/socks-gw
To go through the proxy that supports SOCKS v5:
$ printf '#!/bin/sh\nexec nc -X 5 -x proxy.bigcompany.com:1080 "$@"\n' > ~/bin/socks-gw
Tell git about it:
$ chmod 755 ~/bin/socks-gw $ git config --global core.gitproxy ~/bin/socks-gw
Note: on Ubuntu/Debian, be sure to install the netcat-openbsd package, not netcat-traditional.