<div dir="ltr">Hey all,<div><br></div><div>I spent a bunch of time yesterday stitching together our repos into a single repo. My goal was to try and identify issues that might make this challenging. You can see the results here: <a href="https://github.com/feedhenry-raincatcher/raincatcher-stitched/">https://github.com/feedhenry-raincatcher/raincatcher-stitched/</a>. My approach was the following:</div><div><br></div><div><ol><li>Move the demo apps into a "apps" subdirectory<br></li><li>Move the modules into a "packages" subdirectory<br></li><li>Move the documentation into a "docs" subdirectory</li><li>Copy the branches from each individual repo to a branch on the monorepo with the following naming scheme: "<original branch name>-<original repo name>".</li><li>Copy the tags from each individual repo to the monorepo with the following naming scheme: "<original tag name>-<original repo name>"</li><li>Ensured the history stays intact.</li></ol><div>I found a tool that promised to implement this exact approach (<a href="http://search.cpan.org/dist/Git-FastExport/script/git-stitch-repo">http://search.cpan.org/dist/Git-FastExport/script/git-stitch-repo</a>). It's written in Perl and I spent an unreasonable amount of time yesterday trying to configure my system to install CPAN modules :/. Eventually I got it working, but if you take a look at the stitched repo, it seems to have done an incomplete job. I'm not a Perl developer so I don't think it would be worth my time to try to contribute a fix, but I think I could implement something similar with a bit of effort.</div></div><div><br></div><div>What do you guys think—do we need to migrate all of the branches from each repo, or just the master from each one? Do we care about the history? Is it important to keep every single tag? Let me know what you think!</div><div><br></div><div>Peter</div></div>