Skip to content

Update Default Branch

codecommit_update_default_branch R Documentation

Sets or changes the default branch name for the specified repository

Description

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

Usage

codecommit_update_default_branch(repositoryName, defaultBranchName)

Arguments

repositoryName

[required] The name of the repository for which you want to set or change the default branch.

defaultBranchName

[required] The name of the branch to set as the default branch.

Value

An empty list.

Request syntax

svc$update_default_branch(
  repositoryName = "string",
  defaultBranchName = "string"
)