All Products
Search
Document Center

Alibaba Cloud DevOps:Migrate code repositories from third-party platform to Codeup

Last Updated:Jun 19, 2025

Codeup is fast at importing Git data of repositories. Learn how to migrate code repositories from third-party platforms on Codeup console.

Background

Codeup supports migrating code repository from:

  • Self-managed GitLab

  • Generic URL

Note

For the following scenarios, use Codeup-CLI for import: full migration of a self-hosted GitLab instance, self-hosted services inaccessible via the Internet, repositories larger than 1GB, and bulk migration of hundreds of repositories. This is because console-based imports may encounter timeouts due to large data volumes or network constraints.

Step 1: Select the third-party platform

  1. Log on to the Codeup homepage and click Import Repository in the upper-right corner.

  1. Select the target third-party platform.

image

Step 2: Configure authorization

Authorization varies from third-party platforms. Follow the steps below to fill in the fields:

For code repositories migration from self-managed GitLab

image

Parameter reference:

  • Host URL: The homepage address of your self-managed GitLab. Do not include any parameters or suffixes beyond the home page address. Example: https://gitlab.your-company.com.

  • Access Token: Get access token.

For code repositories migration based on URL

image

Parameter reference:

  • Source Repository URL: Enter the HTTP clone URL of the repository, not the repository URL in your browser.

  • Account: The account used for HTTP cloning on the third-party platform.

  • Access Token: Get access token.

Further steps

1. Configure authentication for push and pull on Codeup

When using Codeup to push and pull code, user authentication is required.

2. Update remote repository URL

After migration, the remote repository URL needs to be updated to the one generated from Codeup.

  • Update the remote repository URL locally.

    // To view the remote repository URL, run the following command:
    git remote -v
    // To modify the remote reository URL, run the following command:
     git remote set-url origin <new git clone address from Codeup>
  • Update repository addresses in third-party systems.

    • If you push or pull code on a third-party platform, update the remote repository URL on the platform.

    • If the third-party platform uses HTTPS to access the code repository, you need to configure user authentication on the platform.