Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export a repository from a Gitlab server to another Gitlab server

Tags:

gitlab

Just installed a fresh new 6.8 Gitlab on a brand new high performance server.

Before considering to forget my repositories history (comments, issues, etc...), do one know of a way to export a repository data from a Gitlab server to another Gitlab Server ?

I just failed to found anything on the documentation for exporting/migrating the whole project data (not just the git repository and its wiki).

like image 225
blackeyedboy Avatar asked Apr 25 '14 14:04

blackeyedboy


People also ask

How do I copy a GitLab project to another project?

(On my version of Gitlab, if you click the button twice, you can download directly from the browser.) Then to import, on Gitlab, select the New button > New Project from the top bar. Then, select Import Project > Gitlab export.

How do I move a GitLab project to another group?

On the left sidebar, select Settings > General. Expand Advanced. Under Transfer project, choose the group to transfer the project to. Select Transfer project.


1 Answers

For GitLab versions >= 8.9 (released in June 2016) you can use the built-in export and import project feature.

Please not that for the existing installations of GitLab, this option has to be enabled in the application settings (URL: /admin/application_settings) under 'Import sources'. You have to be a GitLab admin user to enable and use the import functionality.

Here is the feature complete documentation: https://gitlab.com/help/user/project/settings/import_export.md

like image 193
Greg Dubicki Avatar answered Sep 22 '22 11:09

Greg Dubicki