I have a handful of projects on a self-hosted GitLab instance which I am losing the ability to use. I've decided to moved these projects to GitLab.com, in part because of how easy I expect the migration process to be. Since it is GitLab on both sides, I hoped that the imported project would be essentially indistinguishable from the exported project.
I have exported the projects from the GitLab instance where they were previously hosted. I have also done a couple trial imports onto GitLab.com.
First, I tried importing a project with no other setup. I used GitLab.com's big green "New Project" button, selected "Import project", selected "GitLab export", and provided a project name and the export .tar.gz file.
The import seemed largely successful but with one significant shortcoming. Every issue is marked as having been reported by me. Every issue is assigned to me. Every comment is marked as having been made by me - but with an extra line at the end explaining who actually made the comment.
This clearly failed to meet the hopes I described at the top - since ownership and authorship history has been practically destroyed.
Next, I had one of my collaborators on the original self-hosted GitLab instance create a GitLab.com account. I also had them associate the same email they used in the self-hosted GitLab instance with their GitLab.com account. Then I followed the same import process.
The outcome of this import was largely indistinguishable from the first attempt.
Is it possible to preserve ownership and authorship information for this kind of migration? If so, how?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…