Thursday, July 31, 2014

Making git know about my http and https proxy server

Following is the general syntax of the commands that will set the http and https proxy servers for git:

 git config --global http.proxy http://proxyuser:proxypassword@proxyserver:proxyport  
 git config --global https.proxy http://proxyuser:proxypassword@proxyserver:proxyport  

For example, if I want to set the http and https proxy servers to 192.168.10.10:3128, then I would use the following command (assuming my proxy server requires no authentication):

 git config --global http.proxy http://192.168.10.10:3128
 git config --global https.proxy http://192.168.10.10:3128