Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 330 Bytes

File metadata and controls

16 lines (11 loc) · 330 Bytes

To get information about a branch

This example gets information about a branch in an AWS CodeCommit repository.

Command:

aws codecommit get-branch --repository-name MyDemoRepo --branch-name MyNewBranch

Output:

{
  "BranchInfo": {
        "commitID": "317f8570EXAMPLE",
                "branchName": "MyNewBranch"
  }
}