tencent cloud


Create Branch

Last updated: 2022-03-30 11:02:28

    This document describes how to create branches in code repositories.

    Open Project

    1. Log in to the CODING Console and click the team domain name to go to CODING.
    2. Click in the upper-right corner to open the project list page and click a project icon to open the corresponding project.
    3. Select Code Repositories in the menu on the left and click Branches to go to the branch management page.

    Branches are a common function in Git. The common development approach is to retain one trunk (or master branch), while each development or bug fix task is carried out on its own branch. When finished, the branches are merged back into the trunk. Because development directly on the trunk is very risky, the branch can be viewed as a safety valve, which isolates different development tasks. It can ensure that the stability of the master version is not compromised, while allowing different people to focus on different development tasks.


    Below, we will refer to branches in CODING code repositories as remote branches and branches in local Git repositories as local branches. You can run commands on your local terminal to quickly create branches. For details, see Common Git Commands.

    1. Go to the code repository details page and click the Branches tab to see all branches in the remote repository.
      Here, you can create branches and enable protected branches. The branch list tab displays the number of additional or missing commits relative to the default branch at present.

    2. Click Create Branch in the upper-right corner and follow the instructions in the pop-up window to enter the relevant configuration information. The master branch is used as the source by default, and a new branch is derived from this source.

    3. When creating a branch, you can add a simple description to indicate the purpose of the branch. When the branch name cannot fully indicate its purpose, add additional information in the Branch Note.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support