In my current company, for security reasons, our windows computers are configured to use a corporate proxy for all our web accesses.
To avoid errors like fatal: unable to access ...: Received HTTP code 407 from proxy after CONNECT
, we have to set up git
to use this proxy with the right authentication settings.
GIT configuration
HTTP
In Git BASH, in global mode
$ git config --global http.proxy http://user:pwd@proxy-url:proxy-port/
HTTPS
In Git BASH, in global mode
$ git config --global https.proxy http://user:pwd@proxy-url:proxy-port/
Now we can use remote git
commands without network error.