Forums

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

Unable to push cleaned changes to repository/workspace after reducing repo size with BFG

Samuel Mateo_ Jr_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 28, 2025

Hi Bitbucket Community,

 I’m facing an issue where my Bitbucket workspace has been locked in read-only mode because it exceeded the 1 GB limit.

To resolve this, I cleanup the repository using BFG to strip large files, ran aggressive GC, and reduced my local repository size significantly.

However, when I try to push the cleanup changes back to Bitbucket repository, I still get this error:

Thank you in advance!

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2025

Hi @Samuel Mateo_ Jr_ and welcome to the community!

I ran a garbage collection on your repository and its size is just below the 1 GB limit now, 999.4 MB.

You should be able to push your changes now. Please keep in mind that after you push the history rewrite, the repo size will most probably go up again. The remote repo will need another git gc for the old, dangling commits to get removed and for the change in size to be reflected.

Please feel free to leave a comment here after you push, and I can run another git gc for your repo.

Kind regards,
Theodora

Samuel Mateo_ Jr_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2025

Thanks Theodora!

I just pushed the changes. Please run another git gc.

Thanks 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2025

You are very welcome!

I ran another git gc, the repo size has been reduced further. You can see the new size from the repositories list of your workspace, or from Repository settings > Repository details > look for the field Size.

Does it look ok now on your end?

Kind regards,
Theodora

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