Hi@akhtar,
You can get information about a repository branch, including its name and the last commit ID. This example gets information about a branch in an AWS CodeCommit repository.
$ aws codecommit get-branch --repository-name MyDemoRepo --branch-name MyNewBranch
Hope this helps!
Check out this AWS training and certification program and become the expert
Thanks!