84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我有些小的Demo都已经是git仓库管理了。它们的文件夹名字分别叫DemoA,DemoB,DemoC现在我手动把这些Demo放在一个大的空仓库中来管理。这个空仓库对应的文件夹的名字叫Demos.现在结构如下
现在这种情况下,哪怕DemoA有了修改,外面的Demos文件夹对应的仓库也无法察觉仓库状态发生了变化。就好像没有跟踪 DemoA ,DemoB,DemoC一样,请问如何解决较好
Use git submodule.Treat DemoA, DemoB, and DemoC as submodules of the project.
PS: I don’t know what your project is, but it may be more convenient to use dependency management tools instead of git, such as PHP’s composer and Java’s maven.
Use git submodule.
Treat DemoA, DemoB, and DemoC as submodules of the project.
PS: I don’t know what your project is, but it may be more convenient to use dependency management tools instead of git, such as PHP’s composer and Java’s maven.