How to create a commit in AWS CodeCommit

0 votes

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?

Nov 23, 2020 in AWS by akhtar
• 38,260 points
681 views

1 answer to this question.

0 votes

Hi@akhtar,

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.'"
answered Nov 23, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer

How to create a new, empty repository in AWS CodeCommit?

Hi@akhtar, You can create a repository and associate it with ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,460 points
824 views
0 votes
1 answer

How to view information about a commit in a repository in AWS CodeCommit?

Hi@akhtar, You can get information about a commit, ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,460 points
600 views
0 votes
1 answer

How to get information about differences for a commit specifier in a repository in AWS CodeCommit?

Hi@akhtar, You can get information about the differences ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,460 points
962 views
0 votes
1 answer

How to update a comment on a commit in AWS CodeCommit?

Hi@akhtar, You can replace the contents of a comment. The ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,460 points
602 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to create a branch in an AWS CodeCommit repository?

Hi@akhtar, This example creates a branch in an ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,460 points
1,451 views
0 votes
1 answer

How to create a pull request in AWS CodeCommit?

Hi@akhtar, The following create-pull-request example creates a pull request named ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,460 points
1,759 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP