Answer the question
In order to leave comments, you need to log in
How and where to store shared files?
There is a frontend on React and a backend on Spring Boot, they are stored in different repositories. They have common files that are stored both there and there. If suddenly, either on the front or on the back, something changes in the common files, you need to somehow synchronize the changes (for now, we stupidly send it by mail :)). Tell me what ways are there to somehow simplify this process and store everything in one place? git submodules comes to mind, but I'm not sure if it's correct and it's interesting to hear other solutions
Answer the question
In order to leave comments, you need to log in
In my git submodule, that's it.
Create 3 rep. common files there. And in each rap you add a submodule. Synchronize submodules as you update!
Why is a submodule good? The fact that you can "take" a cast of the main turnip and submodule. At the same time, work actively on all three. Well, it’s natural to use branching: you take everything that goes into the deploy strictly from the release branches (for example). + it is correct to use tags here. Especially at the submodule. Those. pick up from the submodule not by the kamit, but by the tag.
Good luck!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question