【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 

就可以,

相关推荐
wdfk_prog7 小时前
GitHub push 失败:如何扫描并清理 Git 历史中的大文件
git·elasticsearch·github
大明二代10 小时前
使用 Traefik、cert-manager 和 DNS-01 为内网 Kubernetes 服务配置 HTTPS
git·kubernetes·flux
小芒果_0110 小时前
git常用命令速查
大数据·git·elasticsearch
2501_9304724412 小时前
腾讯云助手规范化Git提交记录
git·elasticsearch·腾讯云
风尘小子1 天前
git的.gitignore文件中文件和目录配置
git
Tanner_SL1 天前
Linux笔记之GIT常用命令
linux·git
醉颜凉1 天前
Jenkins与Git集成完全指南:从基础配置到自动触发构建
运维·git·jenkins
樱花落木兰1 天前
Git 超全零基础教程|三区原理、全套命令、分支协作、冲突解决、IDEA 集成(面试必备)
ide·git·json·github
云和数据.ChenGuang1 天前
git revert回退问题
java·服务器·人工智能·git·fastapi·强化学习
伞伞悦读1 天前
【第12期】Windows 开发环境备份与恢复:软件、环境变量、Git、conda 和 Docker 卷完整方案
git·docker·conda