Maintaining two Git repositories

58 Views Asked by At

I have a question regarding maintaining multiple repositories in git.

I currently have 2 projects divided into 3 folders: Landing, Admin, Stores. Which in turn the two projects are divided into US and MX. So we have US: 1, 2, 3 and MX: 1, 2, 3.

Maintaining the individual folders is not a problem, the problem is that the two projects share most of the code (Almost a mirror) except for some small changes such as type of currency, language, etc.

My question is, how can I make, for example, that the MX project is a constant copy of US and that every time I make changes in US they are easily integrated into MX?

The current way i have right now is:

  • In the US repository I have a branch called MX.
  • I download the branch integrated with Master.
  • I integrate the changes and verify everything manually (that nothing is overwritten)
  • Once everything is verified, I copy and paste all the files in the MX repository folder.
  • I update MX.

As you can see, it's a tedious process, and being 3 folders, it's almost untenable.

0

There are 0 best solutions below