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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.