1

this thread is relevant but this is for Github: See the size of a github repo before cloning it?

Sulthan
  • 123,697
  • 21
  • 207
  • 260
nrion
  • 3,117
  • 3
  • 14
  • 32

2 Answers2

2

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

Jim Redmond
  • 3,031
  • 1
  • 11
  • 18
1

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".

pcampana
  • 1,867
  • 14
  • 35
  • got no settings – nrion May 10 '19 at 14:19
  • If you are owner, you are able to see it. Check if you are owner or you have admin permisions. Then, as I have said: 1. Enter into the repository 2. Click settings (in the left menu) 3. See repository details after clicking on "Retrieve Size Details". – pcampana May 10 '19 at 14:32