【发布时间】:2019-02-16 13:04:39
【问题描述】:
假设我们正在使用 git 子模块:
git submodule add https://github.com/user/repo
我想知道是否有办法跟踪特定文件夹,如下所示:
git submodule add https://github.com/user/repo -- xxx
这样的事情可能吗?
例如,假设我们在 .gitmodules 文件中有这个:
[submodule "config"]
path = config
url = https://github.com/user/repo.git
所以我正在寻找的是我本地项目中的配置文件夹,以反映其他/远程仓库中的 xxx 文件夹。
【问题讨论】:
-
Git 在 repo 上工作,没有办法跟踪文件夹(至少我知道)。
标签: git-submodules git-subtree git-subrepo