Updated on 2025-07-24 GMT+08:00

Migrating a GitLab Repository

Prerequisites

  • Before importing a GitLab repository, you need to configure a personal access token for GitLab by referring to Obtaining an Access Token from GitLab.
  • A maximum of 100 repositories can be imported at a time.

Steps

  1. Go to the CodeArts Repo homepage, click New Repository, and select an existing project from the Project drop-down list box or create a project.

  2. Set the repository type to Imported, import from GitLab, and select By personal access token for Authorization.

    If an error message indicating authorization failure is displayed, it means your access token is incorrect or invalid. In this case, reconfigure your access token in GitLab by referring to Obtaining an Access Token from GitLab.

  3. Click Next. The Import page is displayed. Select the repositories to be imported. Click Next. Set Basic Information and Repo Sync Settings by referring to Configuring Basic Information for a New Repository and table 1 parameters for synchronizing repositories.
  4. Click OK. The repository list page of the project is displayed. If the following figure is displayed, the repository is being imported.

    Figure 1 Repository being imported
    If the following figure is displayed, the GitLab repository is successfully imported.
    Figure 2 GitLab repository successfully imported

    If the following figure is displayed, the GitLab repository fails to be imported.

    Figure 3 Repository import failed

Video Tutorial