How to get information about a branch in AWS CodeCommit

0 votes

Hi Team,

I have one branch in AWS CodeCommit. I want to get information about the branch. So, I can use it in the automation script. Can anyone tell me, how can I do that?

Nov 24, 2020 in AWS by akhtar
• 38,230 points
825 views

1 answer to this question.

0 votes

Hi@akhtar,

You can get information about a repository branch, including its name and the last commit ID. This example gets information about a branch in an AWS CodeCommit repository.

$ aws codecommit get-branch --repository-name MyDemoRepo --branch-name MyNewBranch


Hope this helps!

Check out this AWS training and certification program and become the expert

Thanks!

answered Nov 24, 2020 by MD
• 95,440 points

Related Questions In AWS

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,440 points
410 views
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,440 points
1,129 views
0 votes
1 answer

How to view information about multiple commits in AWS CodeCommit?

Hi@akhtar, The following batch-get-commits example displays details about the specified ...READ MORE

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

How to delete a branch in AWS CodeCommit?

Hi@akhtar, You can delete a branch from a repository ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,440 points
1,015 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
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,440 points
743 views
0 votes
1 answer

How to get information about a repository in AWS CodeCommit?

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

answered Nov 24, 2020 in AWS by MD
• 95,440 points
372 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