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

0 votes

Hi Guys,

I have one repository in AWS CodeCommit. I want to change the default branch for the repository. How can I do that?

Nov 24, 2020 in AWS by akhtar
• 38,180 points
165 views

1 answer to this question.

0 votes

Hi@akhtar,

You can set or change the default branch name for the specified repository. The below example changes the default branch for an AWS CodeCommit repository.

$ aws codecommit update-default-branch --repository-name MyDemoRepo --default-branch-name MyNewBranch
answered Nov 24, 2020 by MD
• 95,140 points

Related Questions In AWS

0 votes
1 answer

How to get information about differences for a commit specifier in a repository in AWS CodeCommit?

Hi@akhtar, You can get information about the differences ...READ MORE

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

How to get the contents of a folder in an AWS CodeCommit repository?

Hi@akhtar, The following get-folder example demonstrates how to get the ...READ MORE

answered Nov 25, 2020 in AWS by MD
• 95,140 points
115 views
0 votes
1 answer

How to create a new, empty repository in AWS CodeCommit?

Hi@akhtar, You can create a repository and associate it with ...READ MORE

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

How to delete a branch in AWS CodeCommit?

Hi@akhtar, You can delete a branch from a repository ...READ MORE

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

How to change the name of a repository in AWS CodeCommit?

Hi@akhtar, You can rename a repository. The repository name ...READ MORE

answered Nov 25, 2020 in AWS by MD
• 95,140 points
132 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,140 points
117 views