https://zhuanlan.zhihu.com/p/378894743
# socket
git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'
# unset
git config --global --unset http.proxy
git config --global --unset https.proxy
# view
git config --global --get http.proxy
git config --global --get https.proxy
其他样例:
# http git config --global http.https://github.com.proxy http://127.0.0.1:7890 git config --global https.https://github.com.proxy https://127.0.0.1:7890 # socket git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' git config --global --unset https.https://github.com.proxy git config --global --unset http.https://github.com.proxy