# git-submodule **Repository Path**: rhack/git-submodule ## Basic Information - **Project Name**: git-submodule - **Description**: git submodule实验 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-28 - **Last Updated**: 2025-07-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` 1. 进入你的项目根目录 cd git-submodule 2. 添加 submodule git submodule add https://gitee.com/rhack/submodule-v1.git third_party/submodule-v1 git submodule add https://gitee.com/rhack/submodule-v2.git third_party/submodule-v2 3. 添加 submodule 后,需要把变更提交到你的仓库: git add .gitmodules third_party/submodule-v1 git add .gitmodules third_party/submodule-v2 git commit -m "Add submodule" git push 4. 克隆带 submodule 的项目 git clone https://gitee.com/rhack/git-submodule.git git submodule update --init --recursive 如果后续 submodule 有更新,也可以用: git submodule update --recursive --remote ```