Forums

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

How to reduce storage (what to do afterwards)?

MacGritsch March 29, 2025

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!

2 answers

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Champion
March 29, 2025

@MacGritsch welcome to the Atlassian community

I have escalated to Atlassian support.  They will be able to run garbage collection for you.

MacGritsch April 1, 2025

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

 

Like Brant Schroeder likes this
0 votes
Phil C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2025

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

MacGritsch April 1, 2025

I have done a fresh clone.
The command shows 65 MB so everything seems fine.

Thank you

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