Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I get the count of commits, Tags, Filecount and PullRequests from Bitbucket private repo?


I migrated a repository from bitbucket to github so as part of validation i want to check the count of total commits, tags, filecount, branches and PullRequests of Bitbucket private repository? Is there any API or plugin to get these details ?

1 answer

Hi Nagaraju,

It's possible to use the Awesome Graphs app which is free and visualizes the number of commits added by each developer.

This Bitbucket REST API query returns the list of commits in a repo so that it's possible to count their number.

Same can be done using the following Git command and count the lines it returns

git log --oneline --all | wc -l

Hope it helps!

Thank you for the response. I installed Awesome Graphs before but it shows only  the details for each developer but i need commits count for a repo. 


But Thanks the git command worked i can able to pull all the commits and to make sure again that this command will get all the commit count for a repository for all branches or a single branch ?

one more thing i am trying to pull the above metrics (count of commits, tags, PR's, files , branches) remotely. I don't want to download to my local and run git commands

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

478 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you