Accessing Git Repository from Visual Studio behind a Proxy Server

I was working for a client who has a proxy server on the network and every HTTP request passes through it. In this situation I couldn’t access my Git repository and was getting errors like

“Couldn’t resolve host..”

or

“Unable to access …”

For me the solution was to config proxy settings in GIT. On my local machine in command prompt I used this sample command:

git-config –global http.porxy Http://UserId:UserPassword@ProxyServerName.com:Port

For me port was 80 and I replaced UserId,UserPassword and ProxyServerName.com with my LAN id, password and proxy server name.

Once done it keep working until LAN password expires or changes. I hope it is helpful.

Let’s Connect

 twIcon lnIcon fbicon

1 Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s