Help Center/ CodeArts Repo/ User Guide/ Cloning or Downloading Code Repo to a Local PC/ Differences Between Cloning and Downloading a Repository
Updated on 2024-11-22 GMT+08:00

Differences Between Cloning and Downloading a Repository

Both cloning and downloading the code repository are ways of obtaining the code repo, but their operations and outcomes vary.

  1. Clone a repo to a local PC.

    Use the SSH key or HTTPS protocol to clone a repo: copy the contents of the entire repo to the local computer and create a local repo. The local repository contains the complete history of code commits, branches, and tags for version controls and modifications. Currently, CodeArts Repo supports cloning code repositories using Git Bash and TortoiseGit clients. Before cloning repos in CodeArts Repo with an SSH key, configure the SSH key for accessing CodeArts Repo.

  2. Download a repo.

    Download one or more files or folders in the repo to a local computer. This does not contain complete code commit history, branches, or tags. Version control and modification cannot be performed. Currently, CodeArts Repo allows you to download code using a browser.

Therefore, if you need to control and modify the version of the code repo, you need to use the SSH key or HTTPS protocol to clone the code repo. If you only need to obtain one or more files of the code repo, you can use a browser to download the code repo.

  • If you want to clone the code repo and develop code locally, go to the home page of the code repo to be cloned from CodeArts Repo, choose Branches > Create Branch, and create a development branch based on the master branch.
  • Currently, CodeArts Repo supports cloning only one code repo at a time. If you want to clone multiple code repo to the local host at a time, you can download multiple repo using Shell or batch processing commands.