I am cleaning up my workspace, due to the just announced changes in storage for workspaces.
https://www.atlassian.com/blog/bitbucket/important-changes-coming-to-bitbucket-clouds-free-plan
I am using Bitbucket since I began coding years and years ago, so I have some old, dusty, but also unknowingly big repositories.
So I am on a quest to cleanup my workspace. I use git filter-repo to remove files, getting, for example, the size of a local repository down to 8mb from 350mb. which is reasonable for what the repo now is. Nearly the same procedure is suggested in this first-party blog entry of the support:
https://support.atlassian.com/bitbucket-cloud/kb/how-to-remove-files-from-the-commit-history-in-bitbucket-cloud/
I do the same the last commands as suggested in the blog article:
git reflog expore --expire=now --all && git gc --prune=now --aggressive
git push --force
Big caveat: (quote) Please make sure to contact our support through https://support.atlassian.com/contact/ to run the Garbage Collection on the server-side repository and get rid of the unwanted commit.
What does the support say?
Nothing, I am not able to contact the support.
Bitbucket Free comes with Community Support. Upgrade to a paid plan to get one-on-one customer support.
How should I cleanup my workspace, if my repository is cached and instead of decreasing it increases with each push? The 350mb remote repository is now at 400mb because i »cleaned« it 3 times…
Help.