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

Cloud Computing

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?

1
Answers

Replies

Ans: It is possible to get information from list of branches or from one or more branches in a repository. Below is an example that lists all the branch names in an AWS CodeCommit repository.


$ aws codecommit list-branches --repository-name MyDemoRepo


{


  "branches": [


      "MyNewBranch",


      "master"


  ]


}

 
 

If you want to unleash your potential in this competitive field, please visit the Cloud Computing course page for more information, where you can find the Cloud Computing tutorials and Cloud Computing frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
Protected by Astra Security