git clone 中途停止不动

参考链接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。

posted @ 2020-05-20 18:54  o云淡风轻o  阅读(11178)  评论(0编辑  收藏  举报