git download proxy settings http or socket5 setting method

 

// see the current proxy settings 
git config - , Ltd. Free Join http.proxy 
git config - , Ltd. Free Join https.proxy 

// set the current proxy to http://127.0.0.1 : 1080 or SOCKET5: // 127.0.0.1:1080 
git config - http.proxy -global ' http://127.0.0.1:1080 ' 
Git config --global https.proxy ' http://127.0.0.1:1080 ' 

Git config --global http.proxy ' Socks5: //127.0. 0.1: 1080 ' 
git config --global https.proxy ' Socks5: //127.0.0.1: 1080 ' 

// delete Proxy 
git config --global -unset http.proxy
git config --global --unset https.proxy

 

Guess you like

Origin www.cnblogs.com/Cong0ks/p/11504782.html