its looks like I reached size limit with my repo, tho when I run git count-objects -Hv
localy size is
count: 1933
size: 7.69 MiB
in-pack: 68498
packs: 19
size-pack: 24.87 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
I imagen first thin I should try to do to run gc for my repo in bitbucket, to try and reduce size. How can I do it ?
I can see you have upgraded to a paid plan, which does not have the 1GB restriction. You may utilise our documentation below in conjunction with something like the BFG tool to reduce the size of your repositories:
You can use this handy command to find the largest files in any given repo, which will help you target those large files for cleanup:
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
Once you've performed cleanup operations, I will need to execute a subsequent garbage collection from the server-side.
Please let me know the repository size from Repository Settings > Repository Details of the repo's you've performed cleanup on once you're done (this way you're not sharing repo names on a public forum).
Cheers!
- Ben (Bitbucket Cloud Support)
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.