【Git】git clone --depth 1 浅克隆

问题

bash 复制代码
  PycharmProjects git clone git@
Cloning into 'risk-package'...
remote: Counting objects: 576, done.
error: pack-objects died of signal 947/574)   
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

在公司拉一个比较大的git项目,发现由于项目太大而拉不下来,没办法。

解决方案

bash 复制代码
git clone --depth 1 git@gitlabxxxxx 

就可以,

相关推荐
安庆平.Я2 小时前
git互联GitHub 使用教程
git·github
自来也_8 小时前
Git配置代理
git
Jooolin1 天前
【编程史】Git是如何诞生的?这可并非计划之中...
linux·git·ai编程
Lw老王要学习1 天前
VScode 使用 git 提交数据到指定库的完整指南
windows·git·vscode
去旅行、在路上1 天前
Git & Svn
git·svn
abcnull1 天前
github中main与master,master无法合并到main
git·github
养意1 天前
git提交代码和解决冲突修复bug
git·bug
码农黛兮_462 天前
Git 常用命令大全
git
一弓虽2 天前
git 学习
git·学习
疯狂的沙粒2 天前
如何通过git命令查看项目连接的仓库地址?
大数据·git·elasticsearch