Hi there,
I have recently cleaned my workspace repositories. Can garbage collection please be run on all repos that are there?
G'day, @DJ
Welcome to the community!
I have initiated garbage collection on one of the large repositories, reducing it to approximately 590MB. While it's still quite substantial, you might consider trimming it down further.
However, since your workspace is currently below the 1 GB limit, you should be fine. If you want to minimize the size further, refer to our documentation below for maintaining a Git repository.
Regards,Syahrul
The size should be 36.3 MB. Something is not right from your side. I had cleaned it already.
Hey @DJ
Thanks for the update.
You have a couple of options to resolve this:
Option 1 - Delete & recreate the repositoriesThis is the fastest way to solve the problem, but loses metadata such as PRs, Pipelines, Permissions, etc.
git rev-list --objects --all \| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \| awk '/^blob/ {print substr($0,6)}' \| sort -r --numeric-sort --key=2 \| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
HTTPSgit push --mirror https://<username>@bitbucket.org/<WorkspaceID>/<RepoName>.git
SSHgit push --mirror git@bitbucket.org:<WorkspaceID>/<RepoName>.git
NOTE: This will remove metadata such as PR's/pipelines/permissions etc but will keep your commit history and binary files intact.
Option 2 - Temporarily upgrade
Please let me know how this goes.
It looks like you're new here. Sign in or register to get started.