PlagueHammer PlagueHammer - 17 days ago 4x
Git Question

Getting git to work with a proxy server

How do I get git to use a proxy server?

I need to check out code from a git server, it shows "Request timed out" every time. How do I get around this?

Alternatively, how can I set a proxy server?


Command to use:

git config --global http.proxy
  • change proxyuser to your proxy user
  • change proxypwd to your proxy password
  • change to the URL of your proxy server
  • change 8080 to the proxy port configured on your proxy server

If you decide at any time to reset this proxy and work without proxy:

Command to use:

git config --global --unset http.proxy

Finally, to check the currently set proxy:

git config --global --get http.proxy