Updated on 2026-05-14 GMT+08:00

Migrating a Git Repository Using a URL

Constraints

  • The repository domain must be connected to the service node.
  • Currently, Git supports the following external import sources: bitbucket.org, code.aliyun.com, coding.net, git.qcloud.com, gitee.com, github.com, gitlab.com, visualstudio.com and xiaolvyun.baidu.com.
  • After a code repo is created, only the creator can access the repo. Other project members need to be manually added to the repository and assigned with corresponding permissions. Therefore, you need to manually add members to the repository and configure access permissions for the new members by referring to Configuring Repo-Level Permissions.

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 Import, and import from Git URL. For details about how to set parameters, see Table 1.

    Table 1 Parameters for obtaining authorization

    Parameter

    Description

    Source Repository URL

    Specifies the repo path to be imported. The source repository path must start with http:// or https:// and end with .git.

    Verification to Access Source Repo

    There are two cases:

    • If the imported source repository is open to all visitors, select Not needed.
    • If the imported source repository is private, select Needed. Currently, the repositories can be verified through service endpoint and username and password. For details about how to set the parameters, see Verifying the Import Permission.

  3. Click Next. On the Basic Information page, set parameters by referring to the parameter table.
  4. Set the parameters for syncing a repo by referring to table 1. After the parameters are set, the Code page for creating the repo is displayed.

Helpful Links