El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.
CodeArts Repo
CodeArts Repo
- What's New
- Function Overview
- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
- Process of CodeArts Repo
- Purchasing CodeArts
- Accessing CodeArts Repo Homepage
- Environment and Personal Settings
- Migrating Code and Syncing a Repository
- Creating a Repository
- Viewing Activities
- Viewing Repository Statistics
- Configuring Repository Settings
- Hierarchical Repository Management
- Configuring a Repository
- Managing Repo Member Permissions
- Cloning or Downloading Code Repo to a Local PC
- Uploading Code Files to CodeArts Repo
- Developing a Workflow
- Creating and Configuring a CodeArts Project
- Committing Code to CodeArts Repo and Creating a Merge Request
- Managing Merge Requests
- Managing Code Files
- Security Management
- Best Practices
-
FAQs
- Authentication
- Member Permissions
-
Uploading and Downloading Code
- "Error: Deny by project hooks setting 'default': message of commit" Is Reported When Code Repository Is Pushed from the Local Host to CodeArts Repo
- Pushing Binary Files to CodeArts Repo Failed
- Error "'origin' does not appear to be a git repository..." Is Reported When the Git Push Command Is Executed
- Error "The requested URL returned error: 401" Is Reported When HTTPS Is Used to Clone Code in CentOS
- Error "Merge branch 'master' of https://test.com Please Enter a commit" Is Reported When Pulling Code Using the Git Pull Command
- Message "fatal: refusing to merge unrelated histories" Is Displayed
- How Do I Prevent Files Containing Secrets from Being Pushed to CodeArts Repo?
- Migrating Repositories
- Merge Request
- Fork Sync
- Repository Capacity
- FAQs
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
APIs
- SSH Key
-
Repository
- Obtaining Files in a Branch Directory
- Obtaining Repository Statistics
- Obtaining Image Files of a Specific Branch in a Repository
- Modifying the Status of a Repository Referenced by a Pipeline
- Checking Whether a User Has the Repository Administrator Permission
- Setting a Repository to Public or Private
- Obtaining the Content of a Specified File in a Specified Branch of a Repository
- Obtaining a Public Template List
- Creating a Repository
- Obtaining a Repository Short ID to Generate the Details Page URL
- Querying a Commit of a Branch by Repository or Repository Group Name
- Querying Branches of a Specified Repository
- Querying a Commit of a Repository Branch by the Repository ID
- Adding a Deploy Key
- Deleting a Deploy Key
- Obtaining the Last Commit Statistics of a Repository
- Repository Statistics
- Deleting a Repository
- Viewing a Repository Creation Status
- Querying the Tag List of a Repository
- Adding a Tag
- Querying Details About a Repository
- Obtaining the number of committed code lines
- Downloading a Repository
- Creating a Protected Branch
- Deleting a Protected Branch
- Deleting Protected Branches in Batches
- Creating a Protected Tag
- Deleting a Protected Tag
- Obtaining a Repository Branch List
- Obtaining the MR List of a Repository
- Obtaining MR Details of a Repository
- Obtaining the Repository IP Address Whitelist
- Adding the Repository IP Address Whitelist
- Modifying the Repository IP Address Whitelist
- Deleting the Repository IP Address Whitelist
- Obtaining the Changes of an MR
- Associating a Repository with a Member Group
- Locking a Repository Based on the Repository Short ID
- Unlocking a Repository Based on the Repository Short ID
- Approving an MR
- Obtaining Associated Work Item Information
- Obtaining Reviewer Information Based on the Repo Short ID and Merge Request Short ID
- Obtaining the List of Changed Files
- Tenant
- Group
- Project (V2)
- RepoMember
- Commit
- File
- User
- Webhook
- Project
- Repository Management (V2)
- Review
- Application Examples
- Appendix
- Videos
- General Reference
On this page
Help Center/
CodeArts Repo/
User Guide/
Cloning or Downloading Code Repo to a Local PC/
Using HTTPS to Clone Code from CodeArts Repo to a Local Computer
Copied.
Using HTTPS to Clone Code from CodeArts Repo to a Local Computer
Using Git Bash to Clone a Repo to a Local Host
- Access CodeArts Repo homepage.
- Go to the home page of the code repo to be cloned, click Clone/Download, and copy the HTTP address.
- On the local Git Bash client, run the cd D:/Repo command to go to the address of the code repository to be cloned. The following command indicates that the cloned code repository will be cloned to the Repo folder in drive D.
- Run the following command to clone the repository to the directory:
git clone code repo HTTPS link
If you clone code repo for the first time, you need to enter the username and password. There are two types of usernames and passwords. Select one of the following methods based on your configuration:
- To view the username and password, log in to and go to the Repo code repo list page, click the nickname in the upper right corner, and choose This Account Settings > Repo > HTTPS Password to obtain your username and password. If you have forgotten the password, you can reset the HTTPS password.
- Token username and password. The token username is private-token, and the token password is the configured token. If the token is lost or forgotten, generate a new token by referring to Configuring an Access Token.
If the following figure is displayed, the repo is cloned successfully. If code repo fails to be cloned, rectify the fault based on the description.
- When step 3 is executed, Git Bash reports error fatal: unable to access 'https:test.com/Test_Private.git/': SSL certificate problem: unable to get local issuer certificate. Before running the git clone command, run the following command so that Git does not verify the SSL certificate when cloning the code repository using HTTPS:
git config --global http.sslVerify false
- During the execution of step 3, Git Bash reports error fatal: unable to access 'https://test.com/Remote_Test.git/': Failed to connect to test.com port 443 after 21161 ms: Couldn't connect to server, indicating that the network is disconnected. Contact your local network administrator.
- When step 3 is executed, Git Bash reports error fatal: unable to access 'https://xxx.git/": Recy failure: Connection was reset, indicating that the domain name resolution is incorrect. For details about the solution, see FAQs.
- When step 3 is executed, Git Bash reports error fatal: destination path 'Test_Private' already exists and is not an empty directory., indicating that the Test_Private code repository has been cloned to this path and is not empty. Solution: Switch to a new empty directory and execute step 3 again.
- When step 3 is executed, Git Bash reports error fetal: Authentication failed for 'https:/xxx.git/', indicating that your password is incorrect. You can log in to the Repo code repo list page, click the nickname in the upper right corner, and choose This Account Settings > Repo >. HTTPS Password. Obtain your username and password. If you have forgotten the password, you can reset the HTTPS password.
- Error "The requested URL returned error: 401" Is Reported When HTTPS Is Used to Clone Code in CentOS This is because of the Git version dis-match.
- If you want to embed the access token into the HTTPS download link, run the following command in step 3: In the preceding command, password indicates your configured token. If the token is lost or forgotten, you can generate a new token by referring to Configuring an Access Token. {project_name} indicates the project name, and {repository_name} indicates the name of the code repository to be cloned.
git clone https://private-token:password@codehub.test.com/{project_name}/{repository_name}.git
Parent topic: Cloning or Downloading Code Repo to a Local PC
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