git config --global http.proxy socks5://127.0.0.1:端口 git config --global http.https://github.com.proxy socks5://127.0.0.1:端口
重置
git config --global --unset http.proxy git config --global --unset http.https://github.com.proxy