Forums

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

“workspace storage used” higher after repository cleaned with BFG Repo-Cleaner ??

Uwe Risse March 28, 2025

Hi,

Today I used BFG Repo-Cleaner to remove any file bigger than 5 MB from my repository, using the following commands:

git clone --mirror https://bitbucket.org/MyAccount/MyProject.git

java -jar bfg.jar --strip-blobs-bigger-than 6M MyProject.git

cd MyProject.git

git reflog expire --expire=now --all && git gc --prune=now --aggressive

git push

After this, the local repository downloaded from Bitbucket shrunk from 888 MB to 410 MB in size, meaning that the cleaning process was successful. However, "workspace storage used" is now diaplayed as 1.69 GB instead of 1.55 GB before the cleaning !!

How can this be? What can I do to let the cleaning become effective for my workspace?

 

2 answers

0 votes
Uwe Risse March 31, 2025

Hi Mark,

Too late. I had tried a lot, but the displayed Atlassian workspace used values behaved so strangely that I no longer considered it trustworthy. So I bit the bullet and rebuilt the repository. As a result, the full project history has been irretrievably destroyed. Very bad! But I managed to get the history back by March 2022. At least that's something. And this repository is now only 125 MB in size instead of the supposed 980 previously. This takes the hassle of the new Atlassian policy off my back, but I am also looking for another solution, because Bitnucket can no longer be recommended. What a pity!

Regards,

Uwe

 

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

Hi @Uwe Risse

Welcome to the community.

I could try to run Git GC (Garbage Collection) against the repository to ensure the size is in the good shape.

Could you provide part of your repository name? (e.g. some***repo)

Regards,
Mark C

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