Updated on 2024-11-14 GMT+08:00
How Do I Migrate a GitLab Repo?
Migration Procedure
The migration tool can migrate data related to repo files, such as branches, tags, commits, and source files of code repositories. GitLab repo data, such as members, PRs, and comments, cannot be migrated.
Procedure
- Log in to CodeArts Repo, and choose New Repository > Import.
- Select Git URL and enter a GitLab URL.
- Configure the GitLab username and personal access token.
- Username: This field is not used. You can enter any character string, for example, test.
- AccessToken: Click the avatar in the upper right corner of GitLab, choose Preferences > User Settings > Access Tokens, and select the read_repository permission.
- Enter the repository information and initialize the configuration.
- Enter the key information about the imported repo.
- Path: Select the root directory of the repo to be imported.
- Repository Name: Name of the imported repo.
- Visibility: Private or public.
- Schedule: If this is enabled, the imported repository is an image repository. The repository cannot commit code and can only be synced from the source repository periodically. The repository is updated every 24 hours, and the updated content is the content of the source repository 24 hours ago.
- Branch: Import the default branch or all branches of the source repo.
- Automatically create check task
- The repo is imported successfully. You can view key information such as the import status and failure cause in the import record list. As shown in the following figure, after the repo is successfully imported, the repo is successfully created.
Parent topic: Migrating Repositories
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot