0 votes
1 view
in Devops and Agile by (22k points)

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?

1 Answer

0 votes
by (37.6k points)

To resolve this use the following command

 git config --global http.proxy http://<proxyuser>:<proxypwd>@<proxy.server.com>:8080

If you decide to reset this proxy and work without proxy use this commands

git config --global --unset http.proxy

Finally, to check the currently set proxy:

git config --global --get http.proxy

...