Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Any Git user can upload projects source code to the Git server and share with others. It also allows users to update and synchronous from the local machine. Generally, Git comes with Command Line Interface(CLI) exceptionally few 3rd party GUI applications.
Git does not use normal system proxy and to connect, proxy has to be explicitly set for this application. If you are trying to connect Github from behind the proxy server, it will not work unless the proxy is set.
How to set proxy from the CLI? Here are the few steps :
1.Check whether proxy is set :
git config --global --get https.proxy
2. Set proxy :
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
change proxyuser to your proxy user
change proxypwd to your proxy password
change proxy.server.com to the URL of your proxy server
change 8080 to the proxy port configured on your proxy server
3. To reset this proxy and work without (no proxy):
git config --global --unset http.proxy
git config --global --unset https.proxy
No comments:
Post a Comment