Visual Studio 2019 unable to bypass proxy

tariq kipkemei 201 Reputation points
2020-10-19T09:09:06.977+00:00

Even though I have disable proxy:

33237-image.png

Somehow visual studio is still trying to access it: How do I disable this?

"Pushing master
Error encountered while pushing to the remote repository: Git failed with a fatal error.
unable to access 'https://dev.azure.com/azureplay-projects/AzurePlayWebApplication/_git/AzurePlayWebApplication/': Failed to connect to 172.30.100.1 port 8080: Timed out
Pushing to https://dev.azure.com/azureplay-projects/AzurePlayWebApplication/_git/AzurePlayWebApplication"

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. tariq kipkemei 201 Reputation points
    2020-10-21T10:18:58.293+00:00

    Thanks , @Anna Xiu-MSFT your solution worked on GIT bash.

    But on VS2019 I had to add these line on 'gitconfig' file:
    Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\etc

    [http]
    sslVerify = false
    proxy =
    [https]
    sslVerify = false
    proxy =


1 additional answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2020-10-20T03:38:50.91+00:00

    Hi @tariqkipkemei,

    Please run the following commands to disable the proxy:

    git config --global --unset http.proxy
    git config --global --unset https.proxy

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Sincerely,
    Anna

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.