0

I started a node.js app and react app under two separate repositories. Now I'd like to combine them.

I've already merged the react app repo to the node.js repo.

So the "master" branch holds the node.js repo.

The "merge-branch" holds the react repo.

It may not have be the proper way to go about merging to repos, but I'm trying to now merge "merge-branch" branch into "master" branch, so they can truly be united. (Right now if I git pull, I only pull the one branch, thus they're not fully combined.

Any suggestions on the easiest way to get "merge-branch" into "master"?

I've tried:

$ git checkout master
$ git merge merge-branch

and I get the error:

fatal: refusing to merge unrelated histories

1

1 Answer 1

1

Add this option to merge: --allow-unrelated-histories

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.