# sub-module **Repository Path**: chenchengf/sub-module ## Basic Information - **Project Name**: sub-module - **Description**: 子仓库 - **Primary Language**: Unknown - **License**: 0BSD - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-27 - **Last Updated**: 2026-01-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 一个GIT仓库作为子目录 进行管理: - 依赖管理 - 代码复用 - 大型项目拆分 ## 增加 git add submodule URL PATH 配置文件:.gitmodule [submodule "submodule/sub-module"] path = submodule/sub-module url = https://gitee.com/chenchengf/sub-module.git git仓库数据: submodule/sub-module/.git #这为链接到实际数据位置 gitdir: ../../.git/modules/submodule/sub-module ## 子模块管理 .gitmodules 只是记录子模块和主仓库的映射关系 .git/config 中的配置才是本地配置