How to view a list of branch names in AWS CodeCommit

0 votes
Hi Team,

I have branches in the AWS CodeCommit repository. I want to list all the branch names with the CLI command. How can I do that?
Nov 23, 2020 in AWS by akhtar
• 38,170 points
61 views

1 answer to this question.

0 votes

Hi@akhtar,

You can get information about one or more branches in a repository. The below example lists all branch names in an AWS CodeCommit repository.

$ aws codecommit list-branches --repository-name MyDemoRepo
{
  "branches": [
      "MyNewBranch",
      "master"
  ]
}
answered Nov 23, 2020 by MD
• 95,160 points

Related Questions In AWS

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,160 points
89 views
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,160 points
275 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,160 points
69 views
0 votes
1 answer

How to view information about a commit in a repository in AWS CodeCommit?

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

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

How to view a list of repositories in AWS CodeCommit?

Hi@akhtar, You can lists all AWS CodeCommit repositories ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,160 points
92 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,160 points
123 views