Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
A simple wrapper around socat to use as a git proxy command
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
# More details at
# Configuration. Common proxy ports are 3128, 8123, 8000.
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport

Hi, how can I set authentication information in that case?


I found that there is a parameter for authentication:

You can try:

exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport,proxyauth=_user:_passwd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.