Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Execute a GC

Héctor Fenoll Malonda October 1, 2023

Hi

Please run garbage collection on our repository  (sa********23)

Could you execute it at 00:00 GMT?

I'm opening this request because since I can't create a support case for them to execute it.

Thanks, best regards

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2023

Hi Héctor,

I have executed a gc and this has reduced the repo size down to 535mb.

I would suggest executing the following command to identify large files in your repository and then either remove these or convert these to GIT LFS to store them outside of the repository:

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

 The reason for this is that any large binary files in your repository will have these files stored in full with each subsequent commit and can quickly inflate repository size.

Please let me know if further assistance is required.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events