tl;dr: We need to merge our npm package’s private repo with its public repo and are seeking guidance on the best way to do this without losing stars or history. The public repo houses the same code as the private one and its master is updated with each version released to npm from the private repo.
We are working on fully open sourcing the project and currently have 2 repos:
- the public repo (with the stars!) that is updated automatically whenever we release an update to the npm package
- the private repo (with all the history!) is where the work on extending and maintaining the package is done.
While the source code and package are open source, we currently don’t accept external contribution or expose our development roadmap (beyond a changelog) and we’d like to change that. Right now we’ve landed on the following course of action:
- rename the private to indicate that it’s depracated
- push the private repo’s history to the public one
- rename public repo to the name of the private repo (for auto-redirect)
Then we’d get to keep our 1000+ s and old public URLs would still work. What we’re concerned about is breaking all the PR links in the commit history. Is there a way for us to merge these two without creating a mess?