Forums

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

Can't reduce the size of the repository

Łukasz
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!
January 8, 2024

A branch with a large number of files was accidentally pushed but not merged. Since then, the size of the repository has increased to 3gb. I removed the local and remote branch, but the size of the repository did not decrease. I have already used BFG Repo-Cleaner, but it did not help, the branch size still remains above 3gb.

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2024

Hello @Łukasz and welcome to the Community!

After you clean up the repository, it may take some time for the git garbage collection (GC) to run in the backend for the repository and remove the deleted references/objects.

We from support can manually trigger GC on customer requests to cleanup the repo, so you don't need to wait for the automatic GC to be executed.

However, checking internally I see you have already deleted the old repo with size 3GB, and pushed the cleanup repository to a new repository. With this, the new repository is already clean and using only 37MB.

In the future, whenever you need to remove large files/branches from your repository and the size doesn't change immediately in Bitbucket, you can request support for garbage collection :) 

Thank you, @Łukasz !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events