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

0 votes
1 answer
0 votes
1 answer
asked Aug 27, 2019 in AWS by yuvraj (19.2k points)
0 votes
1 answer
asked Jul 17, 2019 in BI by Vaibhav Ameta (17.6k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...