H
H
HaruAtari2014-03-29 20:02:22
git
HaruAtari, 2014-03-29 20:02:22

GIT: How to organize stacked repositories?

I want to make a small personal site where I will collect demos of all my applications (web ones). Applications from time to time I add / rework. Also in the blog there are links to them and their repositories. And this is where I hit a dead end.
All site code is in a specific repository. At the same time, the code of each demo is in its own repository. But on the server, their code is located in the same directory as the general site code, and as a result, inside the site repository.
Question: how to update their code regardless of the site code?
There was an idea to add their directories to the .gitignor of the main repository and download them separately. But how in this case to automate the project?
Maybe someone faced a similar problem? Tell me how to solve it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aleksandr Kuznetsov, 2014-03-29
@x_T

Git submodule ( ru ) should solve the problem

P
Puma Thailand, 2014-03-30
@opium

Nafig gitmodul, put them in different folders and don't fence borscht.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question