Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set proxy for Microsoft Git Provider in Visual Studio

I have to use http proxy to connect to Git server. I am able to set it through Git Bash and use it too through the following command:

git config --global http.proxy http://proxyuser:[email protected]:8080

However, I am using Microsoft Git Provider integration with Visual Studio. And I am not able to set proxy anywhere to connect to Git server. Is there a way that I can save the proxy details for Microsoft Git Provider in Visual Studio?

like image 929
Saket Kumar Avatar asked May 31 '17 13:05

Saket Kumar


1 Answers

Another approach would be to go to your user folder c:\users\<account name> (in my case c:\users\danielj) and create a file called .gitconfig.

paste the following:

[user]
    name = <your name>
[user]
    email = <your email address>
[http]
    sslVerify = false
    proxy = "http://<username>%40<domain e.g. domain.com>:#<password>@<proxy server name>:<port>"
[https]
    sslVerify = false
like image 195
Daniel Joubert Avatar answered Nov 03 '22 11:11

Daniel Joubert