简体   繁体   English

如何将合并请求从一台git服务器迁移到另一台git服务器?

[英]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有三种方法

  1. 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 复制基础数据库并删除所有不需要的项目

  2. 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.

相关问题 如何将拉取请求从一个 Git 服务器迁移到另一个 Git 服务器以获取存储库? - How can I migrate the pull requests from one Git Server to another Git Server for a repository? 如何在 git 中将 2 个拉取请求从一个分支合并到另一个分支 - How to merge 2 pull requests from one branch to another in git 将Git Repo从一台服务器迁移到另一台服务器 - Migrate Git Repo from one server to another server 如何强制将一个 git 分支合并到另一个分支中 - How can I forcefully merge one git branch into another 使用GIT,我如何有选择地将一个提交的更改合并到另一个'fork'上? - Using GIT, how can I selectively merge changes from one commit on another 'fork'? 如何在git中将文件从一个分支合并到另一个分支? - How can I merge files from one branch to another branch in git? 如何将一个分支中的特定文件合并到Git中的另一个分支中 - How can I merge a specific file from one branch into another branch in Git 如何从一个 Git 存储库迁移到另一个 Git 存储库? - How to migrate from one Git repo to another Git repo? 如何在git中将文件历史记录从一个分支合并到另一个分支? - How can I merge a file history from a branch to another in git? 如何将 GIT 存储库从一台服务器迁移到新服务器 - How to migrate GIT repository from one server to a new one
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM