CmdID / aws / aws codecommit
aws codecommit update-default-branch
Sets or changes the default branch name for the specified repository. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--default-branch-nameThe name of the branch to set as the default branch.--repository-nameThe name of the repository for which you want to set or change the default branch.