Updated on 2024-11-22 GMT+08:00

Creating a Repository

  1. 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.
  2. Select Common and set parameters based on the following table.

    Table 1 Parameters for creating a repo

    Parameter

    Description

    Repository Name

    Mandatory. Start with a letter, digit, or underscore (_). You can use letters, digits, hyphens (-), underscores (_), and periods (.). Do not end with .git, .atom, or periods (.).

    Description

    Optional. The value contains a maximum of 2000 characters.

    .gitignore Programming Language

    Optional. It is recommended that you fill in this parameter and select the programming language for your code repository from the dropdown list. This can effectively prevent unnecessary files from being tracked, thus keeping your repo clean and maintainable.

    Initial Settings

    Optional. The options are as follows:

    • Generate README It is recommended that you select this option. After the file is generated, you can edit the README file to include information such as the project's architecture and compilation purpose, which will help others quickly understand the repo.
    • Automatically create Check task (free of charge) It is recommended that you select this option. After a code repository is created, you can view the check task of the repo in the CodeArts Check task list.

    Visibility

    Optional. You can select either of the following options as need:

    • Private: Only repository members can access and commit code.
    • Public The value can be For project members, For tenant members, or For all guests.
      NOTE:

      Repos can be set to Private or Public. Go to the details page of a code repo, choose Settings > General Settings > Repository Information, and modify the visibility for the repo.

    Open-Source License

    This parameter is mandatory when Visibility is set to Public. Select an existing license from the drop-down list.