Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
use Git with proxy

install socat

sudo apt-get install socat

edit ~/.ssh/config

    proxycommand socat - PROXY:localhost:%h:%p,proxyport=8080

###If you want to use SOCKS proxy, edit it like this. host ProxyCommand socat - SOCKS:localhost:%h:%p,socksport=7070

For detailed information, please see the man page of socat

clone repo

git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.