Forums

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

Minimal space reduction post BFG clean and gc

Victor Dang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2025

Hi, we recently ran BFG cleaner in order to stay well below the new 1GB limit for Bitbucket's free tier. 

The cleaner was able to purge 3 files, which was supposed to reduce the repo size by approx. 600MB~. After rewriting the history & running the gc, we pushed it back to Bitbucket but it only appeared to have reduced the repo size by 100MB~ (from 870MB~ to 770MB~).

On further inspection of the newly cloned local repo (git count-objects), it shows a pack size of 280MB~, compared to what's shown in Bitbucket. 

Is there a server-side gc task that needs to be done as well in order to free up the remaining space?

Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2025

Hello @Victor Dang ,

and welcome to the Community!

A garbage collection is usually necessary after a clean-up to remove any dangling commits/objects that might have been left behind.

I've manually triggered a GC in the repository you mentioned, and it helped to reduce its size to 288MB, which is close to the value you found locally.

This managed to get your workspace total size down to ~400MB, which is well under the 1GB limit.

I hope this helps! Let us know in case you have any questions.

Thank you, @Victor Dang !

Patrik S

Victor Dang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2025

Hi @Patrik S

That's great to hear, thank you so much!

Like Patrik S likes this

Suggest an answer

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

Atlassian Community Events