Gitlab: copy project to other git lab repository

前端 未结 3 1878
余生分开走
余生分开走 2020-12-10 18:57

I want to copy a gitlab project to other repository which be completely independent from original project.

For this reason I tried forking original

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-10 19:20

    Another option is to use Gitlab's export/import feature.

    The difference with the other answer is that it also copies the following:

    • Project and wiki repositories
    • Project uploads
    • Project configuration, including services
    • Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
    • LFS objects

    So it depends on your use-case if you just want to copy the codes or if you also want to migrate the other project management parts and configurations as listed above. The result would still be 2 separate projects (i.e. It will not appear as a fork).

    To export, go to your project's Settings > General page:

    Then wait for the email with the downloadable tar.gz. file.
    (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.

提交回复
热议问题