We have a repo that has gotten clogged up with multiple projects in it - so it is now a monorepo.
We need to break out multiple folders together into new repos along with their history. That is:
Current repo "Monorepo" folders:
- Foo_1
- Foo_2
- Bar_1
- Bar_2
- Bar_3
- Stuff_to_keep_here
- Total_junk_1
- Total_junk_2
Each folder contains various files, with Foo being one project, Bar being another, and Total_junk being stuff that we don't want to pollute the history of any of the repos (csv files, jpgs, etc). Once the Foo and Bar projects are broken out, we don't need to keep them in Monorepo anymore.
I have watched hours of youtube videos and read numerous Q&A posts here on SO and I cannot find a single one that works for our case. They all take only 1 folder to the new repo, or they make a mirror which doesn't seem to work, or some other detail that leaves me short of my goal.
Can anyone suggest a solution that:
- Allows multiple folders to be broken out into a new repo that's independent of the original
- With history
- That allows the old repo to have those folders removed
- But also allows other history to be removed