Reputation: 5004
I want to know the total file size of a certain repo on Bitbucket.
This thread is relevant but this is only for Github: How can I see the size of a GitHub repository before cloning it?
Is there a similar way of knowing the size on Bitbucket?
Upvotes: 3
Views: 8513
Reputation: 5660
It's easiest to get this info from the admin panel. However, if you are not an admin, and you're using Bitbucket Cloud, then you can still query the API for it: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D
Upvotes: 2
Reputation: 2711
In Bitbucket Cloud, a repository admin can see the size under "Repository Details" under Settings.
In Bitbucket Server too, you can view it under Settings > Repository Details after clicking on "Retrieve Size Details".
Upvotes: 3