B
B
BuckvicK2020-07-10 23:24:27
Java
BuckvicK, 2020-07-10 23:24:27

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

2 answer(s)
A
Alexander Buliterov, 2020-07-16
@bullitufa

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!

S
Saboteur, 2020-07-11
@saboteur_kiev

1. What are common files?
2. make a third repository for common files and commit there
3. git submodules is probably not the best solution. But you need to understand what kind of files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question