From 83e86afdc52f3ec68c43eb066f117abbdf967ba0 Mon Sep 17 00:00:00 2001 From: SkyLiCoder Date: Tue, 14 Apr 2026 02:09:59 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E6=8C=87=E5=8D=97=203=20=E4=BB=93=E5=BA=93=E6=8B=89=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-3-%E4%BB%93%E5%BA%93%E6%8B%89%E5%8F%96.md | 72 ++++++++++--------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-3-%E4%BB%93%E5%BA%93%E6%8B%89%E5%8F%96.md b/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-3-%E4%BB%93%E5%BA%93%E6%8B%89%E5%8F%96.md index 8e333ee..1062997 100644 --- a/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-3-%E4%BB%93%E5%BA%93%E6%8B%89%E5%8F%96.md +++ b/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-3-%E4%BB%93%E5%BA%93%E6%8B%89%E5%8F%96.md @@ -1,34 +1,38 @@ -# 仓库拉取 - -本文介绍如何克隆主仓库及其子模块。 - -## 克隆仓库 - -**必须使用 `--recursive` 参数**,否则子模块目录会是空的: - -```bash -git clone --recursive git@gitea.your-team.com:your-team/auto-aim-mobile-bot.git -``` - -## 如果克隆时忘记 `--recursive` - -可以单独初始化子模块: - -```bash -# 进入仓库目录 -cd auto-aim-mobile-bot - -# 初始化并更新子模块 -git submodule update --init --recursive -``` - -## 验证克隆结果 - -```bash -# 查看子模块状态 -git submodule status - -# 预期输出类似: -# 917f5b74eb6b1e8d7bce57fa2274bb0574f336b6 modules/chassis (heads/main) -# f9e81d6e04c2a38e43b78961aea2686aa121d960 modules/gimbal (heads/main) -``` +# 仓库拉取 + +本文介绍如何克隆主仓库及其子模块。 + +## 克隆仓库 + +**必须使用 `--recursive` 参数**,否则子模块目录会是空的: + +```bash +git clone --recursive git@gitea.your-team.com:your-team/auto-aim-mobile-bot.git +``` + +## 如果克隆时忘记 `--recursive` + +可以单独初始化子模块: + +```bash +# 进入仓库目录 +cd auto-aim-mobile-bot + +# 初始化并更新子模块 +git submodule update --init --recursive +``` + +## 验证克隆结果 + +```bash +# 查看子模块状态 +git submodule status + +# 预期输出类似: +# 917f5b74eb6b1e8d7bce57fa2274bb0574f336b6 modules/chassis (heads/main) +# f9e81d6e04c2a38e43b78961aea2686aa121d960 modules/gimbal (heads/main) +``` + +# 下一页 + +[开发指南-4-开发流程](./%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-4-%E5%BC%80%E5%8F%91%E6%B5%81%E7%A8%8B) \ No newline at end of file