Overview
CodeArts Repo is a distributed version management platform that uses the Git workflow. It provides functions such as security management, member and permission management, branch protection and merge, online editing, and statistical analysis. The service aims to address issues such as cross-distance collaboration, multi-branch concurrent development, code version management, and security.
To start a new project, you can use CodeArts Repo built-in repository templates to create a repository for development. For details, see Starting R&D Projects in CodeArts Repo.
If you are developing a project locally and want to use CodeArts Repo to manage versions, you can migrate the project to CodeArts Repo. For details, see Migrating a Local Project to CodeArts Repo.
Starting R&D Projects in CodeArts Repo
You can use repository templates provided by CodeArts Repo to create a project and start development. The following figure shows the workflow.
The operations involved are as follows:
- Creating a Repository Using a Template
- Configuring Member Management
- Configuring CodeArts Repo
- Git Installation and Configuration
- Cloning or Downloading Code from CodeArts Repo to a Local PC
- Managing Branches
- Managing Tags
- Submitting Code to the CodeArts Repo
- Managing MRs
- Forking a Repository
Migrating a Local Project to CodeArts Repo
To manage code versions of a locally developed project using CodeArts Repo, you can bind the local repository to CodeArts Repo and complete initial push. Then, you can continue developing your project in the distributed version management mode. The following figure shows the workflow.
The operations involved are as follows:
- Creating a Common Repository
- Configuring Member Management
- Configuring CodeArts Repo
- Git Installation and Configuration
- Associating the CodeArts Repo Repository
- Cloning or Downloading Code from CodeArts Repo to a Local PC
- Managing Branches
- Managing Tags
- Submitting Code to the CodeArts Repo
- Managing MRs
- Forking a Repository
Distributed Version Management
There is a complete code repository on your local computer and in CodeArts Repo respectively.
All version information can be synchronized to the local computer for viewing.
You can commit code offline on the local computer and push the code to the CodeArts Repo repository when the network is connected.
Basic Workflow
CodeArts Repo is a cloud repository service that uses the Git workflow.
- Data in a Git local repository can be in one of the three statuses: modified, staged, and committed. The file you modified in the repository is in the modified state. You can run the add command to add the changes to the local temporary zone. Then, the file is in the staged state. Run the commit command to commit the changes to the local repository for management. The corresponding version and version number are generated upon each commit. You can switch and roll back a version based on the version number. A version can have multiple branches and tags. Each branch, tag, or commit is an independent version that can be checked out using the checkout command.
- As a cloud repository service, CodeArts Repo not only has the basic features of local Git repositories, but also serves as the remote repository of each local repository and provides configurable security policies and authentication.
- A CodeArts Repo cloud repository interacts with a Git repository in the following scenarios:
- clone: clones the branch in CodeArts Repo to the local computer as a local repository.
- push: pushes changes in the local repository to CodeArts Repo.
- fetch: fetches a version from CodeArts Repo to the working directory.
- pull: fetches a version from CodeArts Repo to the working directory and tries to merge it into the current branch. If the operation fails, you need to manually resolve the file conflict.
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