Flutter Git 报错,无法下载问题:报措信息:error: 1844 bytes of body are still expected fetch-pack: unexpected

github 下载 flutter 时候报错:错误信息如下:

C:\src>git clone -b beta https://github.com/flutter/flutter.git
Cloning into 'flutter'...
remote: Enumerating objects: 315342, done.
remote: Counting objects: 100% (1531/1531), done.
remote: Compressing objects: 100% (890/890), done.
error: 1844 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

解决方法:
1、git 初始化

git init

2、去掉 ssl 校验

git config http.sslVerify "false"

3、git缓存设置大一些,根据包的大小设置,我设置的是400M

git config --global http.postBuffer 400M

4、重新Git下载吧
git clone -b beta https://github.com/flutter/flutter.git

成果结果:

C:\src>git clone -b beta https://github.com/flutter/flutter.git
Cloning into 'flutter'...
remote: Enumerating objects: 315342, done.
remote: Counting objects: 100% (1530/1530), done.
remote: Compressing objects: 100% (852/852), done.
remote: Total 315342 (delta 882), reused 1070 (delta 635), pack-reused 313812
Receiving objects: 100% (315342/315342), 149.31 MiB | 196.00 KiB/s, done.
Resolving deltas: 100% (244174/244174), done.
Updating files: 100% (5159/5159), done.

你可能感兴趣的:(Flutter Git 报错,无法下载问题:报措信息:error: 1844 bytes of body are still expected fetch-pack: unexpected)