PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
codecommit
**To create a commit** The 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 ``master`` branch. :: aws codecommit create-commit --repository-name MyDemoRepo --branch-name master --put-files "filePath=readme.md,fileContent='Welcome to our team repository.'" Output:: { "filesAdded": [ { "blobId": "5e1c309d-EXAMPLE", "absolutePath": "readme.md", "fileMode": "NORMAL" } ], "commitId": "4df8b524-EXAMPLE", "treeId": "55b57003-EXAMPLE", "filesDeleted": [], "filesUpdated": [] } For more information, see `Create a Commit in AWS CodeCommit`_ in the *AWS CodeCommit User Guide*. .. _`Create a Commit in AWS CodeCommit`: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-commit.html#how-to-create-commit-cli
[-] get-merge-conflicts.rst
[edit]
[-] describe-pull-request-events.rst
[edit]
[-] update-pull-request-status.rst
[edit]
[-] credential-helper.rst
[edit]
[-] list-pull-requests.rst
[edit]
[-] delete-comment-content.rst
[edit]
[-] test-repository-triggers.rst
[edit]
[-] get-repository-triggers.rst
[edit]
[-] get-comments-for-pull-request.rst
[edit]
[-] delete-file.rst
[edit]
[+]
..
[-] batch-get-repositories.rst
[edit]
[-] put-repository-triggers.rst
[edit]
[-] delete-branch.rst
[edit]
[-] get-branch.rst
[edit]
[-] create-commit.rst
[edit]
[-] list-branches.rst
[edit]
[-] post-comment-for-pull-request.rst
[edit]
[-] get-pull-request.rst
[edit]
[-] update-repository-name.rst
[edit]
[-] update-default-branch.rst
[edit]
[-] get-comment.rst
[edit]
[-] update-comment.rst
[edit]
[-] get-commit.rst
[edit]
[-] get-file.rst
[edit]
[-] get-folder.rst
[edit]
[-] post-comment-reply.rst
[edit]
[-] put-file.rst
[edit]
[-] get-blob.rst
[edit]
[-] create-repository.rst
[edit]
[-] update-pull-request-description.rst
[edit]
[-] create-pull-request.rst
[edit]
[-] get-differences.rst
[edit]
[-] merge-pull-request-by-fast-forward.rst
[edit]
[-] list-repositories.rst
[edit]
[-] create-branch.rst
[edit]
[-] update-repository-description.rst
[edit]
[-] delete-repository.rst
[edit]
[-] update-pull-request-title.rst
[edit]
[-] get-comments-for-compared-commit.rst
[edit]
[-] get-repository.rst
[edit]
[-] post-comment-for-compared-commit.rst
[edit]