很多git的问题起始都是由于网速导致的,可以尝试运行一下命令:
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global http.sslVerify "false"
其实就是不使用http和https代理,并且不检查ssl
另一种方法是从文章:(18条消息) git下载出错GnuTLS recv error (-54): Error in the pull function_海水梦悠悠的博客-SDN博客zeehttps://blog.csdn.net/shengsikandan/article/details/116697896
中学习来的,其实就是将命令
git clone https://github.com/**.git
变为
git clone git://github.com/**.git
这个方法对于一些问题是非常有效的!