There are more AWS SDK examples available in the AWS Doc SDK Examples
Use CreateBranch
with a CLI
The following code examples show how to use CreateBranch
.
- AWS CLI
-
To create a branch
This example creates a branch in an AWS CodeCommit repository. This command produces output only if there are errors.
Command:
aws codecommit create-branch --repository-name
MyDemoRepo
--branch-nameMyNewBranch
--commit-id317f8570EXAMPLE
Output:
None.
-
For API details, see CreateBranch
in AWS CLI Command Reference.
-