在克隆gitee仓库时出现了下面这样的报错
解决方法:
-
先将git进行初始化后再进行克隆
git init
-
尝试去掉去掉 ssl 校验
git config http.sslVerify "false"
重新开启ssl校验为:git config --global http.sslVerify "true"
-
将git缓存设置大一些
postBuffer的默认值太小,可以根据需要下载的文件大小,将postBuffer值配置成合适的大小。
git config --global http.postBuffer 500M
-
若克隆文件太大,可以尝试只克隆最近一次版本
在克隆的网址后边加上 --depth 1,因为git clone 是克隆所有的版本,加上 --depth 1 只克隆最近一次的版本,1是克隆深度。
git clone <url> --depth 1