0 votes
1 view
in Devops and Agile by (26k 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 (43.8k 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

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !