參考鏈接1:https://blog.csdn.net/weixin_36965307/article/details/105046699
參考鏈接2:https://blog.csdn.net/lemon4869/article/details/106849352
原因1:可能是clone的文件太大。
解決:查看當前Postbuffer的數值
git config --list
設置合適的值
git config --global http.postBuffer 524288000
原因2:可能是下載速度太慢
使用國內鏡像,目前已知Github國內鏡像網站有github.com.cnpmjs.org和git.sdut.me
可以把github.com 替換為 github.com.cnpmjs.org或者git.sdut.me
如:git clone https://github.com/aaa/xxx.git
替換成:git clone https://github.com.cnpmjs.org/aaa/xxx.git
OK。
