【发布时间】:2020-12-08 01:00:58
【问题描述】:
我有 2 个 ADO 存储库 - Repo1 和 Repo2
Repo1 设置为 Repo2 中的子模块
假设我在 Repo1 中进行了更改,并且在 Repo1 的“master”分支中添加了一个新的提交。
我运行以下命令在 Repo2 的子模块中获取该提交。
git submodule update --remote –merge
git add *
git status
git commit -m “updated public submodule”
每次Repo1中有新提交时,我是否应该在Repo2中添加一个新提交以更新子模块?
【问题讨论】:
标签: git azure-devops git-submodules