Git: git clone --recursive不完整解决方案

本文介绍如何处理Git克隆过程中遇到的earlyEOF错误,提供两种解决方案:手动下载子模块和使用gitsubmoduleupdate命令。避免繁琐操作,提升开发效率。

Git: git clone --recursive不完整解决方案

转载自:https://felaim.blog.youkuaiyun.com/article/details/105690980

对于网络差这个问题, 真的LZ无力吐槽了,遇到类似early EOF之类的问题怎么解决呢?
在这里插入图片描述
解决方案:
当然了,解决方案有很多,比如:
方法①: 手动找哪些子模块是三方模块,然后从主项目仓库点进去,手动下载到主项目相应目录下。我真的差点就这么傻傻的去做了,真是快被自己蠢哭了。。。
方法②: cd 到 git clone的主目录下,执行下述命令即可。

git submodule update --init --recursive

相信聪明的你也不会干方法①吧,加油吧,新的一天~

[user@localhost fep_switch]$ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git submodule update --init --recursive 10:58:46.520579 git.c:725 trace: exec: git-submodule update --init --recursive 10:58:46.520616 run-command.c:655 trace: run_command: git-submodule update --init --recursive 10:58:46.531510 git.c:439 trace: built-in: git rev-parse --git-dir 10:58:46.533318 git.c:439 trace: built-in: git rev-parse --git-path objects 10:58:46.536000 git.c:439 trace: built-in: git rev-parse --show-prefix 10:58:46.537084 git.c:439 trace: built-in: git rev-parse --show-toplevel 10:58:46.540258 git.c:439 trace: built-in: git submodule--helper update --recursive --init -- 10:58:46.542987 run-command.c:1524 run_processes_parallel: preparing to run up to 1 tasks 10:58:46.543012 run-command.c:655 trace: run_command: git submodule--helper clone --path ldk_marvell/cpss_work_4.3.10 --name ldk_marvell/cpss_work_4.3.10 --url ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 10:58:46.544305 git.c:439 trace: built-in: git submodule--helper clone --path ldk_marvell/cpss_work_4.3.10 --name ldk_marvell/cpss_work_4.3.10 --url ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 10:58:46.544425 run-command.c:655 trace: run_command: unset GIT_PREFIX; GIT_DIR=.git git clone --no-checkout --separate-git-dir /project/fep_switch/.git/modules/ldk_marvell/cpss_work_4.3.10 -- ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 /project/fep_switch/ldk_marvell/cpss_work_4.3.10 10:58:46.545324 git.c:439 trace: built-in: git clone --no-checkout --separate-git-dir /project/fep_switch/.git/modules/ldk_marvell/cpss_work_4.3.10 -- ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 /project/fep_switch/ldk_marvell/cpss_work_4.3.10 Cloning into '/project/fep_switch/ldk_marvell/cpss_work_4.3.10'... 10:58:46.546841 run-command.c:655 trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL -p 29418 shengmingde@gerrit.ep.tp-link.com 'git-upload-pack '\''/SMB/SWITCH/SDK/cpss_work_4.3.10'\''' 10:58:50.629573 run-command.c:655 trace: run_command: git index-pack --stdin --fix-thin '--keep=fetch-pack 48930 on localhost.localdomain' --check-self-contained-and-connected 10:58:50.630737 git.c:439 trace: built-in: git index-pack --stdin --fix-thin '--keep=fetch-pack 48930 on localhost.localdomain' --check-self-contained-and-connected 请分析问题
最新发布
08-29
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值