Forums

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

Workspace exceeding 1GB size limit

Alan Rutter June 5, 2025

When I tried to do a commit today I received the message saying that my workspace is over the 1GB limit. Locally, I can see that it nothing like that in size.

I have read several recent posts all with the same issue. The general consensus is that garbage collection needs to run on the repository but there doesn't appear to be any way for users to do that against the remote repo.

How are we supposed to reduce the size of the repository so that we return below our limit?

2 answers

1 accepted

0 votes
Answer accepted
Alan Rutter June 16, 2025

For all those who find themselves in the same situation and come across this post, here's how you can fix it:

First up, download/install a couple of tools:

1) Antony Stubbs created a script that shows you large files in your repo. Download it here. 

2) I found this on the Atlassian site but using git filter-branch is not recommended and you should install git-filter-repo

Once you have these, do the following:

1) Make two fresh clones of your repository. One to work on and the other to keep as a backup.

2) Run du -hs .git/objects inside one of your clones. This will tell you the starting size of the repo.

3) Run ./git_find_big.sh to get a list of the largest files in your repo that you might want to remove.

4) Choose a file and run git filter-repo --invert-paths --path <your filepath> - this will untrack the file from your repo and remove it from the commit history.

5) Repeat step 4 for each large file that you can remove.
6) Repeat step 3 onwards until you have removed as many large files as you can safely remove.

7) Running step 2 again should show a much smaller repo.

Now the fun part. Unfortunately instead of simply blocking the commit which puts your repo into read-only mode, Atlassian chose to allow the commit and go read-only straight away.

In order to update your repo WITHOUT creating a trial subscription is to 

1) Delete your existing repository in BitBucket.

2) Create a new repository in BitBucket with the same name as the deleted one.

3) Make sure your remotes are correctly set and then git push --all --force and git push --tags --force to push your newly downsized repository to BitBucket.

 

I hope this helps someone.

 

0 votes
Phil C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2025

Hi @Alan Rutter,

Welcome to the Bitbucket Cloud community!

Earlier this year, we provided an update regarding the Free plan through a blog post and email. These updates involve a 1GB limitation on workspace sizes. More details can be found here - Important changes coming to Bitbucket Cloud’s free plan.

Your current workspace includes two repositories totaling 1.3 GB, with one repository at 1.3 GB and the other being negligible. The larger repository exceeds the 1 GB limit for free workspaces. Although I've run garbage collection on this repository, its size remains unchanged. While garbage collection can offer a short-term solution, as you continue to work on these repositories and potentially add more, the overall size could further exceed the limit.

To address this issue, you have two options:

Option 1:

  • Upgrade to the Standard or Premium plan. (This is the simplest option that allows for growth without hitting the workspace size limit.)

Option 2:

  • Reduce the sizes of the repositories in your workspace. This method would require collaboration through a ticket.
  • Consider deleting the larger repository and replacing it with a smaller local repository, if applicable.

As long as the total size of all your repositories remains under 1 GB, you will be able to push changes again.

I hope this information is useful.

- Phil

Alan Rutter June 6, 2025

Phil,

On behalf of all the other people who have asked the same question in the last few days, this cut and pasted stock reply (which I have seen you post multiple times) doesn’t answer the question at all and is quite frankly insulting to those of us in the community.

Firstly, if Atlassian is implementing this size policy, then as users, we need the ability to run garbage collection on our repos without asking support.

Secondly, I have looked at my repository and it really isn’t that big so what is taking up the space.

Instead of your condescending reply, why not try to actually be helpful and provide the tools and information necessary for me to be able to find out why my repo is apparently so large. In addition, how am I supposed to reduce the size of this repo if I can’t push anything to it.

Alan Rutter June 15, 2025

Still waiting for that answer!!!

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