repository size reduction not reflected on bitbucket

gkamendje January 27, 2025

I have locally reduced the size of my repository to less than 500MB. However, the size shown in Bitbucket is still 2.2G. Could you please run gc to bring it down? 

Best regards, 

1 answer

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

Hi gkamendje,

I have executed a gc which has reduced the size down from 2.2GB to 1.1GB.

To reduce the size further - I would suggest making use of the BFG tool to delete any large binary files present in your repository (or convert them to GIT LFS storage) - here's a command you can use to list these files:

  • 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

 

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

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

Atlassian Community Events