Forums

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

Run garbage collection on repository

Julien Dephix
Contributor
March 25, 2026

Hi!

We've cleaned up our repo by removing large files.

When I clone the repo its local size is 18Mo. On Bitbucket UI it says 1.2Go.

Will GC be triggered automagically or does it need human intervention on Bitbucket's side?

 

We had a message regarding a workspace limit of 1GB being reached so workspace was readonly, blocking all repos.

When do you display this message ? When the sum of all repos sizes within a workspace reach 1GB or when a single repo is over 1GB?


Thanks!

2 answers

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2026

Hi @Julien Dephix

Thank you for reaching out to the community.

I've run Git GC against the remote repository with the 1.2 GB size. However, it only reduced to 1 GB.

Could you confirm how you reduced the repo size?

Regards,
Mark C

Julien Dephix
Contributor
March 27, 2026

Hi Mark.

We used filter-repo to remove traces of a Here sdk. My colleague just pushed the changes to a new repo with the suffix 2 and BitBucket UI reports 13Mo!

Is the difference due to dangling refs to said sdk in some PRs?

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 30, 2026

Hi @Julien Dephix

Run Git GC again to your top repository with the size of 1.3 GB and it reduced to 848 MB.

Unfortunately, your overall workspace size is still above 1 GB.

Could you try using the BFG tool as mentioned in our documentation and see if that helps reduce the size further?

Regards,
Mark C

0 votes
Julien Dephix
Contributor
March 25, 2026

deleted by author

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events