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 22, 2020 in AWS by akhtar
• 38,180 points
100 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 22, 2020 by MD
• 95,240 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,240 points
98 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 23, 2020 in AWS by MD
• 95,240 points
80 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 23, 2020 in AWS by MD
• 95,240 points
118 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,240 points
77 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 22, 2020 in AWS by MD
• 95,240 points
156 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 22, 2020 in AWS by MD
• 95,240 points
586 views