【发布时间】:2019-07-25 05:57:15
【问题描述】:
我开始觉得 git 子树只是子文件夹中的 git 克隆。
例如:
project/
.git
foo/
bar/
subtree/ # this could be a git subtree or just a git clone folder
.gitignore
如果我只是将子树放在 .gitignore 中,然后 git 将我的另一个项目克隆到子树文件夹中,我会不会得到与子树相同的效果?子文件夹中的 git 克隆和 git 子树的有效区别是什么?
【问题讨论】:
标签: git git-submodules git-subtree