Creating and deleting a branch - Amazon CodeCatalyst

Creating and deleting a branch

You can use the CodeCatalyst console to create and delete branches in a CodeCatalyst repository. The branches you create will be visible to other users the next time they pull changes from the repository. When you delete a branch, copies of that branch remain in the clones of the repository on local computers until users pull and synchronize those changes.

Tip

You can also create branches as part of creating a Dev Environment to work on your code. For more information, see Creating a Dev Environment.

You can also use Git to create and delete branches. For more information, see Common Git commands for branches.

To create a branch (console)
  1. In the CodeCatalyst console, navigate to the project where your repository resides.

  2. Choose the name of the repository from the list of source repositories for the project. Alternatively, in the navigation pane, choose Code, and then choose Source repositories.

    Choose the repository where you want to create a branch.

  3. On the overivew page of the repository, choose More, and then choose Create branch.

  4. Enter a name for the branch.

  5. Choose a branch to create the branch from, and then choose Create.

To delete a branch (console)
  1. Navigate to the project where your repository resides.

  2. I

    Choose the name of the repository from the list of source repositories for the project. Alternatively, in the navigation pane, choose Code, and then choose Source repositories.

    Choose the repository where you want to delete a branch.

  3. On the overview page of the repository, choose the drop-down selector next to the branch name, and then choose View all.

  4. Choose the branch that you want to delete and then choose Delete branch.

    Note

    You cannot delete the default branch for a repository.

  5. A confirmation dialog box appears. It shows the repository, number of open pull requests, and number of workflows associated with the branch.

  6. To confirm deletion of the branch, type delete into the text box, and then choose Delete.