I'd like to split out a subfolder in one git repo to make a new one (and preserve git history). GitHub has some good documentation on how to do this using git filter-repo. However, the issue is that some additional changes need to be made after the split to get the new repo ready to run in a new production environment. Ideally, these are the steps I'd like to take:
- Follow the documentation above to split out the subdirectory to a new repo.
- In a new branch on the new repo, make and test minor changes necessary to deploy this repo separately.
- Periodically "pull in" all recent changes from the old repo to the new repo.
- Once everything is tested and ready, merge the new branch into master and deploy the new repo to production.
Is there a way to accomplish step #3 using git filter-repo or another approach (maybe cherry-picking commits from a remote or similar)?