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?
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?
This has nothing to do with cmd.exe, it is a git configuration setting. You need to set gitproxy. See here:
http://www.kernel.org/pub/software/scm/git/docs/git-config.html
Set a system variable named 'http_proxy' with the value of ProxyServer:Port. That is the simplest solution.
Setting gitproxy (as sleske mentions) is another option, but that requires a "command", which is not as straightforward as the above solution.
References: http://bardofschool.blogspot.com/2008/11/use-git-behind-proxy.html
You can also set the HTTP proxy that Git uses in global configuration property http.proxy
:
git config –global http.proxy $http_proxy