解決方案也是網(wǎng)上搜的,總結(jié)一下
一,加大緩存區(qū)
git config --global http.postBuffer 524288000
這個(gè)大約是500M
二、少clone一些,–depth 1
git clone https://github.com/flutter/flutter.git --depth 1
–depth 1的含義是復(fù)制深度為1,就是每個(gè)文件只取最近一次提交,不是整個(gè)歷史版本。
三、換協(xié)議
clone http方式換成SSH的方式,即 https:// 改為 git://
例如git clone https://github.com/flutter/flutter.git
換成git clone git://github.com/flutter/flutter.git