Ahmed Elshafei Ahmed Elshafei - 2 months ago 13x
Git Question

Reset git proxy to default configuration

I installed Socat to Use the Git Protocol Through a HTTP CONNECT Proxy, then I Create a script called

in your bin directory.

# 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 http://tinyurl.com/8xvpny

# Configuration. Common proxy ports are 3128, 8123, 8000.

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

then I Configured
to use it:

$ git config --global core.gitproxy gitproxy

Now, I want to reset git to the default proxy configurations, How can I do ?


You can remove that configuration with:

git config --global --unset core.gitproxy