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 24, 2020 in AWS by akhtar
• 38,260 points
830 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 24, 2020 by MD
• 95,460 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,460 points
1,163 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 24, 2020 in AWS by MD
• 95,460 points
4,183 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 24, 2020 in AWS by MD
• 95,460 points
1,030 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 24, 2020 in AWS by MD
• 95,460 points
590 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,460 points
2,034 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 23, 2020 in AWS by MD
• 95,460 points
1,430 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP