Git proxy settings and cancel (SOCKS5 proxy)

Proxy settings

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

 

Cancel Agent

git config --global --unset http.proxy
git config --global --unset https.proxy

 

As well as for  github.com  alone configuration:

# Only github.com 
git config --global http.https: // github.com.proxy Socks5: // 127.0.0.1:1080 

# cancel proxy 
git config --global --unset http.https: // GitHub. com.proxy 
the Details / 84,748,009

Direct use socks5 fast, nearly hundred projects can be downloaded in a short time.

 test:

 

Guess you like

Origin www.cnblogs.com/CnKker/p/11957813.html