Version management tool - how to deal with nested git warehouses?
淡淡烟草味
淡淡烟草味 2017-05-02 09:24:29
0
1
669

Background

Some of my small demos are already managed by git repositories. Their folder names are DemoA, DemoB, and DemoC
Now I manually put these Demos in a large empty warehouse to manage them. The name of the folder corresponding to this empty warehouse is Demos. The current structure is as follows

In this case, even if DemoA is modified, the warehouse corresponding to the external Demos folder cannot detect the change in warehouse status. It seems like DemoA, DemoB, and DemoC are not being tracked. How can I solve it better

淡淡烟草味
淡淡烟草味

reply all(1)
滿天的星座

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template