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
- Download a repository from the source repository address. Go to the code repository to be downloaded and copy the HTTPS address.
- Open the Git Bash client and clone the code repository to the local computer:
git clone --bare <source_repository_address>
- Associate the cloned code repository and push it to CodeArts Repo.
- 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.
- 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.
- Choose Clone/Download > Clone with HTTPS in the upper right corner and copy the HTTPS address.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot