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
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.