Merge two repos?

Merge two repos?
0
#1

I have a React frontend and a Node/Express backend and want to merge the two. What is the safest and easiest way to go about this?

#2

Easiest and safest is to carefully copy the files from one into the other.

#3

@rstorms You can create a branch in the frontend repo called development, then add the files from your backend repo. Work safely on the development branch until it is working then merge the development branch into your frontend master branch. That way the master branch of both repos will remain untouched while you are working on combinding the two projects in the development branch. Make sure the development brach is working before you merge everything. You could always go back in time that is the reason you are using Git in the first place, right.

By the way, all repos should have at least a development branch and a master branch. So that the master branch will always have a working project and that will allow for experiments/features to be tested in the development branch.