Skip to content

Create Branch

codecommit_create_branch R Documentation

Creates a branch in a repository and points the branch to a commit

Description

Creates a branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

Usage

codecommit_create_branch(repositoryName, branchName, commitId)

Arguments

repositoryName

[required] The name of the repository in which you want to create the new branch.

branchName

[required] The name of the new branch to create.

commitId

[required] The ID of the commit to point the new branch to.

Value

An empty list.

Request syntax

svc$create_branch(
  repositoryName = "string",
  branchName = "string",
  commitId = "string"
)