'gitclone报错fatal:protocolerror:badpackheader'
异常提示
remote: Enumerating objects: 2052, done.
efrror: RPC failed; curl 18 transfer closed with outstanding read data remaining
atal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
原因及解决方法
发生这个问题一般是项目中某些资源太大导致,可以尝试ssh方式clone ,或者解决方式如下
首次clone的层数定位在第一层
git clone 仓库地址 --depth 1
然后cd到项目目录中
cd 项目目录
在此下拉内部文件,--unshallow 即不使用浅克隆
git fetch --unshallow
学习时的痛苦是暂时的 未学到的痛苦是终生的
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步