The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events