Help Center/ CodeArts Repo/ FAQs/ Migrating Repositories/ When a Git-based Remote Repository Is Imported to CodeArts Repo, an Error Message "Accessing the remote repository timed out. Check the network." Is Displayed.
Updated on 2024-11-14 GMT+08:00

When a Git-based Remote Repository Is Imported to CodeArts Repo, an Error Message "Accessing the remote repository timed out. Check the network." Is Displayed.

Symptom

When a Git-based remote repository is imported to CodeArts Repo, the import takes more than 30 minutes, and an error message "Accessing the remote repository timed out. Check the network." is displayed.

Analysis

The code repository is too large or the network is poor.

Solution

  1. Download a repository from the source repository address. Go to the code repository to be downloaded and copy the HTTPS address.
  2. Open the Git Bash client and clone the code repository to the local computer:

    git clone --bare <source_repository_address>

  3. Associate the cloned code repository and push it to CodeArts Repo.

    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 Repository Type to Common, enter related parameters, deselect Generate README and set .gitignore Programming Language to create a code repository. The homepage of the code repository is displayed.
    3. Choose Clone/Download > Clone with HTTPS in the upper right corner and copy the HTTPS address.
    4. Open the Git Bash client and push the local code repository to the created code repository:
      git push --mirror <Created_CodeArts Repo_repository_address>

      When running commands, enter the HTTPS account and password of CoeArts Repo.

  • If your local code repository has branches and tags, they will be pushed to the created code repository.
  • After the push is successful, go to the code repository details page of CodeArts Repo to check whether the pushed code repository is complete. If the problem persists, contact Huawei Cloud technical support.