Forums

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

git gc on bitbucket

Fernando M_ July 24, 2025

Hi, Atlassian team.

I have cleaned my repo by running BFG Repo-Cleaner into a mirror clone and pushed back to remote. In my machine the repo had reduced the size as expected, but in bitbucket it had increased. 

I think I need someone to run git gc in my repo, so the old history will be deleted. 

I don't want to publish the repo name here because privacy issues. But it's the only one big in the workspace cdavis..., with more than 900mb. 

Thank you,

Nando

1 answer

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

Hey @Fernando M_ 

Welcome to the community!

I have triggered a GC on the affected repository, and its size has been reduced to 679 MB after completion. Could you confirm if this is the expected size you're aiming for?

Regards,
Syahrul

Fernando M_ July 28, 2025

Hi @Syahrul 

 

Actually I've expected to be something close to 274.4 MB. 

The size of 679MB is how it was before I had ran BFG Repo-Cleaner removing big files. 

 

When I do a git clone --mirror, the total size in my machine is 274.4 MB. Shouldn't it take the same space in bitbucket cloud? 

 

Thanks,

Fernando

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

Hey @Fernando M_ 

Thank you for confirming. I believe the issue is due to the PR caching old large files. To reduce the repository further, we need to delete both PRs in the repository. Let me know if you'd like to proceed with deleting the PRs.

Regards,
Syahrul

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