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..”
“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 🙂