I want to do "git clone" through a proxy server. The issue is my proxy server uses digest authentication. So i can't find neither in git documentation, nor help that someone that already made.
I dig through google search and i can't find any helpful results.
Thxs.
Setting the proxy for Gitgit config --global --add http. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT. git config --global --add https. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT.
Just to save a few moments of googling on Bennet's Answer:
>git config --global --unset https.proxy
>git config --global --unset http.proxy
Set new settings:>git config --global https.proxy https://USER:[email protected]:80
>git config --global http.proxy http://USER:[email protected]:80
Verify new settings:>git config --get https.proxy
>git config --get http.proxy
NOTE: When you verify, you should see the same values that you put in.
I was able to do a git clone through an authenticated proxy by setting the environment variable http_proxy
to http://username:password@proxyhost:80
Then a plain ole git clone
worked.
(The proxy is some corporate Windows thing, so my username actually looked like domain\username. Took a while to realise that I needed the domain.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With