PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
codecommit
**To add a file to a repository** This example demonstrates how to add a file named 'ExampleSolution.py' to a repository named 'MyDemoRepo' to a branch named 'feature-randomizationfeature' whose most recent commit has an ID of '4c925148EXAMPLE':: Command:: aws codecommit put-file --repository-name MyDemoRepo --branch-name feature-randomizationfeature --file-content file://MyDirectory/ExampleSolution.py --file-path /solutions/ExampleSolution.py --parent-commit-id 4c925148EXAMPLE --name "Maria Garcia" --email "maria_garcia@example.com" --commit-message "I added a third randomization routine." Output:: { "blobId": "2eb4af3bEXAMPLE", "commitId": "317f8570EXAMPLE", "treeId": "347a3408EXAMPLE" }
[-] 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]