If you are behind a proxy server, you may have faced proxy authentication error. If you want get working with git follow the steps given below.
Configure git proxy using the following command:
1 2 3 | git config --global http.proxy http://proxy.server.com:proxyport |
If your proxy need authentication credentials (username/password):
1 2 3 | git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:proxyport |
Note:
Change proxyuser by your proxy user name
Change proxypwd by your proxy password
Change proxy.server.com by proxy host name
Change proxyport by your proxy port
If you decide at any time to reset this proxy and work without (no proxy), use the following command:
1 2 3 | git config --global http.proxy "" |