Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,699 views 10 16
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