Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Repository size

Andrius Dumčius June 4, 2025

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 ?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 4, 2025

Hi @Andrius Dumčius 

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events