[TUTO] – VSTS GIT : How to force the use of the proxy with GIT

0
399

We’ll see how to force proxy usage with GIT for the Visual Studio application.

This article follows a problem encountered with the Visual Studio application. It was impossible for us to download the sources available on the Visual Studio Team Services application locally on our post.

After troubleshooting, we realized that the web feeds did not go through the proxy at all.

Open a Powershell console as administrator, and then verify that no proxies are currently configured by typing the following command:

git config --global --get HTTP.Proxy

No return of the command ? This means that no proxies are configured.

 

Now enter this command to set up your proxy. Do not forget to replace “monproxy mydomain:8080”.

git config --global http.proxy http://monproxy.mondomaine:8080

 

If you re-enter the following command, you should now have a command return and see the proxy you just set up.

git config --global --get HTTP Proxy

 

If you want to remove the proxy, enter the following command:

git config --global --unset http.proxy

 

Forum access
A question about this article ? Need help on other subjects ?
Do not hesitate to ask questions directly on the forum Sys-Advisor from this link.

 

Jérémy Lebon
Fondateur de sys-Advisor.com, Ingénieur de production Informatique dans l'e-commerce mais passionné avant tout, je partage mon quotidien à travers ce site. #sysadmin #microsoft #vmware #tech #geek @sysadvisor Contact Skype Enterprise : jeremy.lebon@sys-advisor.com

LAISSER UN COMMENTAIRE

Please enter your comment!
Please enter your name here