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?
Thankyou
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,
Ana
Hello Ana,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm looking for something similar. Is there some sort of audit log somewhere? maybe that also shows who pulled the code when... this is pretty important for private repos...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ana,
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.
-Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have this same/simalr question. How can I find the total size of all my bitbucket repos together in a given team?
Any ideas? I'm looking through the API docs, but I'd rather not re-invent the wheel if I don't have to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 '.[]'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm looking for this same info: repo creation date and size, via REST query.
Any chance this will be provided in an upcoming version?
This is some basic info that should be available
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be nice if you provide that REST query so that I can try with mine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that currently you can kind-of get the creation date by going to the audit log of the repo... (`/plugins/servlet/audit-log/PROJECT/slug` IIUC), the earliest recorded action there is `RepositoryCreatedEvent`
But I don't see a programmatic way of doing that...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.