error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

mac上使用git报错

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

 

解决方案:在clone地址的最后加上  --depth 1 

  

git clone -b beta https://github.com/flutter/flutter.git --depth 1 

 

最后效果

 

posted @ 2020-08-17 15:51  lude1994  阅读(200)  评论(0编辑  收藏  举报