[英]How can I migrate merge requests from one git server to another?
Our team moved from a git server hosted at site A to another one at site B. They were able to move the source code, and all its branches correctly. 我们的团队从站点A上托管的一台git服务器迁移到站点B上的另一台服务器。他们能够正确移动源代码及其所有分支。 But we couldn't find any way to move the Merge Requests that the team had opened on branches when we were working on site A to site B. 但是,当我们在站点A上工作到站点B时,我们找不到任何将团队在分支上打开的合并请求移动的方法。
Is there a way to do this automatically? 有没有办法自动执行此操作? Many of our Merge requests have conversations in them that are important to maintain history of how the code changed. 我们的许多合并请求中都有对话,这对于维护代码更改历史非常重要。
AFAIK there are three ways AFAIK有三种方法
with access to the server you can 可以访问服务器
1.1. 1.1。 do a whole backup of the server and delete all unneeded projects 对服务器进行完整备份并删除所有不需要的项目
1.2. 1.2。 copy the underlaying database and delete all unneeded projects 复制基础数据库并删除所有不需要的项目
with api access you can 通过api访问,您可以
iterate over your projects and their merge requests and copy them one by one via api to the other server. 遍历您的项目及其合并请求,然后通过api将它们一个一个地复制到另一台服务器。 See Gitlab API merge requests 查看Gitlab API合并请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.