Hi@akhtar,
You can set or change the default branch name for the specified repository. The below example changes the default branch for an AWS CodeCommit repository.
$ aws codecommit update-default-branch --repository-name MyDemoRepo --default-branch-name MyNewBranch
Hope it helps!
Enroll for the AWS Course to learn more about it.