在国内同步github上内容时,总有各种异常,比如:Clone failed RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
此时也可能很无奈,但方法总是比困难多,设置http/https代理可以轻松解决此问题
设置方法:
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 http.proxy
git config --global --unset https.proxy