1**To create a commit** 2 3The following ``create-commit`` example demonstrates how to create an initial commit for a repository that adds a ``readme.md`` file to a repository named ``MyDemoRepo`` in the ``main`` branch. :: 4 5 aws codecommit create-commit \ 6 --repository-name MyDemoRepo \ 7 --branch-name main \ 8 --put-files "filePath=readme.md,fileContent='Welcome to our team repository.'" 9 10Output:: 11 12 { 13 "filesAdded": [ 14 { 15 "blobId": "5e1c309d-EXAMPLE", 16 "absolutePath": "readme.md", 17 "fileMode": "NORMAL" 18 } 19 ], 20 "commitId": "4df8b524-EXAMPLE", 21 "treeId": "55b57003-EXAMPLE", 22 "filesDeleted": [], 23 "filesUpdated": [] 24 } 25 26For more information, see `Create a Commit in AWS CodeCommit <https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-commit.html#how-to-create-commit-cli>`__ in the *AWS CodeCommit User Guide*.