We are using Bitbucket 4.10.1.since last week its seen that bitbucket is aking up lots of huge space, we have many many repository and its difficult to look at individual repository size from Setting tab repository.so basically I am wondering if there is any way to find out the Repo size with date of creation as well. basically how to watch the changeset on Bitbucket repo?
Hi! You can find the size in the Settings page of the repository. As for the creation date you can not find it directly, but you can look for the date of the first commit, for example. You can see it by clicking on the Commit menu in the left hand side.
Hope that helps,
I'd like to ask a similar question from another perspective. Let's say I am storing my repositories on bitbucket cloud. And made several updates on all my code files. Some could be committed to bitbucket cloud at a very late time after their creation dates. As you say I can see their commit dates but what if I want to see their actual create dates, I mean the code files' actual create dates. If I request bitbucket provides it or isn't there any chance to get the original file creation dates?
Thanks for the reply.as you said we can find it on the setting tab of repo, thats right we can get some details of repo over there but since the organization has many hundreds of repos, going through individual repo to find size is too much boring and time consuming so I was wondering if we have something like in command line to which can list all the repos with with its detail like 'ls' in linux.
Using the API you can retrieve a lot of information, but sadly not the size.
Running this you can get all of the information about a repo.
curl --request GET --user $username:$password https://api.bitbucket.org/2.0/repositories/$workspace/$repoSlug | jq '.
Replace the variables with your information.
For more limited information such as just the repo name and created date you can try this.
curl --request GET --user $username:$password https://api.bitbucket.org/2.0/repositories/$workspace/$repoSlug?fields=name,created_on | jq '.'
Meant to post this as a reply to prev thread, mistakenly posted as answer.
I'd love it if "created" and "size" was part of this REST query: https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8287366304 would be very helpful, to for example find and auto-clean empty repos (lots of ppl create an empty repo, then forget about it, and it stays empty forever)
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...
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