How to delete a branch in AWS CodeCommit

0 votes

Hi Team,

I have created one branch in AWS CodeCommit. I want to delete the branch in AWS CodeCommit. How can I do that?

Nov 23, 2020 in AWS by akhtar
• 38,170 points
50 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete a branch from a repository unless that branch is the default branch for the repository. The below example shows how to delete a branch in an AWS CodeCommit repository.

$ aws codecommit delete-branch --repository-name MyDemoRepo --branch-name MyNewBranch
answered Nov 23, 2020 by MD
• 95,060 points

Related Questions In AWS

0 votes
1 answer

How to delete a repository in AWS CodeCommit?

Hi@akhtar, You can delete a repository in AWS CodeCommit. ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,060 points
53 views
0 votes
1 answer

How to get information about a branch in AWS CodeCommit?

Hi@akhtar, You can get information about a repository ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,060 points
40 views
0 votes
1 answer

How to view a list of branch names in AWS CodeCommit?

Hi@akhtar, You can get information about one or more ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,060 points
41 views
0 votes
1 answer

How to change the default branch for a repository in AWS CodeCommit?

Hi@akhtar, You can set or change the default branch name ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,060 points
95 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to delete a file from a branch in AWS CodeCommit?

Hi@akhtar, The following delete-file example demonstrates how to ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,060 points
102 views
0 votes
1 answer

How to create a branch in an AWS CodeCommit repository?

Hi@akhtar, This example creates a branch in an ...READ MORE

answered Nov 22, 2020 in AWS by MD
• 95,060 points
102 views