Answer the question
In order to leave comments, you need to log in
Is there a convenient way to work with git for two projects with several of the same classes?
There are two projects that have a common core (3-4 classes) around which a dozen different classes are written.
I would like to be able to easily commit different edits to two projects in parallel, but at the same time, if there is a change in common files, the second project could get them with one or two git commands.
Can you please tell me the easiest way to implement this?
Answer the question
In order to leave comments, you need to log in
I would suggest breaking it all into 3 repositories - one "core" and two - project. The kernel is "assembled" and included in the form of ready-made code by some dependency manager that is used in your language. Composer - php, pip - python. For the main repository, you will have to create a setup and all the binding to install it as a regular plug-in package (library) in your code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question