git submodule

Last updated on November 20, 2024 am

🧙 Questions

使用git submodule进行多模块管理

☄️ Ideas

项目初始化
git submodule init

# 添加子项目
git submodule add git@git.dfy.definesys.cn:ispong/ispong-chunjun.git

git add .
git commit -m ":tada: init project"
git push -u origin main
移除项目
git submodule deinit leo-spring
git rm --cached -f leo-spring

git commit -am ":fire: delete moudle"
git push -u origin main
下载全项目
git clone --recurse-submodules -b release/papaas-4.0.2-rc git@git.dfy.definesys.cn:apaas/defanyun-apaas-private.git
下载子项目
git clone --recurse-submodules https://github.com/ispong/leo-spring.git
相关操作
git submodule foreach "git fetch || true"

git submodule
https://ispong.isxcode.com/github/git/git submodule/
Author
ispong
Posted on
March 18, 2022
Licensed under