The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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)

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events