【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 小时前
MAC IDEA GIT 提交区显示了几个不存在的目录
git·idea
城东3 小时前
Git使用[远程仓库远端的head比本地和提交的head旧,其他人拉不到最新代码]
git·head·远程仓库远端·比本地和提交的head旧·其他人拉不到最新代码
何中应11 小时前
使用SSH地址拉取远程仓库代码报下面的错误
git
何中应11 小时前
Git本地仓库命令补充
git
sun00770013 小时前
执行repo sync -c -d -j4以后,提交未git push的代码看不到了。要怎么恢复?
git
胖虎116 小时前
Git 一个本地仓库同时推送到两个远程仓库(详细教程)
git·多远程仓库·双远程仓库·git双远程·git备份
春日见1 天前
如何创建一个PR
运维·开发语言·windows·git·docker·容器
stevenzqzq2 天前
git 常用操作
大数据·git
Curvatureflight2 天前
Git工作流最佳实践:从混乱到优雅
git
wu~9702 天前
GitHub永不遗忘,使用git push -f来覆盖的提交依旧保留
git·github