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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @DJ
Thanks for the update.
You have a couple of options to resolve this:
Option 1 - Delete & recreate the repositories
This 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
HTTPS
git push --mirror https://<username>@bitbucket.org/<WorkspaceID>/<RepoName>.git
SSH
git 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.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.