How to create a commit in AWS CodeCommit?

Cloud Computing

Hi Team,

I have created a branch in AWS CodeCommit. I want to create a commit for a repository on the tip of a specified branch. How can I do that?



Ans: The create-commit command helps in the creation of commit in AWS CodeCommit. It helps you create an initial commit for a repository that adds a file to the repository named TestRepo in the master branch.

$ aws codecommit create-commit --repository-name TestRepo --branch-name master --put-files ",fileContent='Welcome to our team repository.'"


If you want to unleash your potential in this competitive field, please visit the Cloud Computing course page for more information, where you can find the Cloud Computing tutorials and Cloud Computing frequently asked interview questions and answers as well.


This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.