One of my free workspaces is over 1.6 GB and the limit was reduced to 1 GB.
So I removed many big files from the history using "BFG Repo-Cleaner".
After executing the following command, the repo is down to 0.25 GB
git reflog expire --expire=now --all && git gc --prune=now --aggressive
After a push, the bitbucket-workspace-settings-page still shows 1.6 GB
I tried to create and delete a branch to trigger a git-gc-command (read somewhere on a forum) but it seems not to trigger the cleanup action.
So a waited a day (perhaps it was recalculated over night) but ist still shows 1.6 GB.
On some forum pages people say that you can contact the support to run `git gc` manually, but it seems not to be possible to create a ticket for a free workspace.
Are there known any methods to trigger the cleanup process?
thank you very much!
@MacGritsch welcome to the Atlassian community
I have escalated to Atlassian support. They will be able to run garbage collection for you.
Thank you. They fixed it. Now its back under 300 MB.
For those who read this:
I hvae also tried the following command (as mentioned in some forums) but it also did not help. So I think the only way is to wait 30 days (and hope that the workspace is not changed to read-only in this time).
reset --hard HEAD~1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I've checked your workspace and ran garbage collection on the repository over 1 GB, and the repository size has reduced. Can you check the remote repository size and compare with your local repository size?
You can check the local size by running the following command on the local repository:
git count-objects -vH
The "size-pack" will show the local repository size.
Before proceeding with the next push to the remote repository, please ensure that you and all repository collaborators make a fresh clone of the remote repository to avoid reintroducing old/cleaned-up history and potentially inflating the repository size again.
- Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have done a fresh clone.
The command shows 65 MB so everything seems fine.
Thank you
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.