git checkout -b my_new_branch
git clone https://git-codecommit.region-code.amazonaws.com/v1/repos/repo-name
cd repo-name
git checkout my_new_branch
// 在本地进行代码更改
git add .
git commit -m "Your commit message"
git push origin my_new_branch
// 转到主分支
git checkout master
// 合并新分支
git merge my_new_branch
git push origin master
注意:在此示例中,我们假设您有CodeCommit存储库的访问权限,并且'repo-name”替换为您的存储库名称。