I have two related repositories and I would like to merge changes from one to the other. My repository was created from an export of an old legacy repository and some changes were made but the structure largely kept so my repo has new files and a few new names but 90% is the same. Now, some fixes had to be made to legacy software and I want to bring the latest changes to the legacy repo in. I have both repositories checked out on my computer, but it is unclear what the best option is.
Some ideas:
- I could try and set the legacy repo as a branch and merge it into the main.
- I could try and rebase all commits since the archive onto my repo.
- I could cherry pick all commits from legacy and then apply them to my repo
What is the most direct way?