Repository size reduced, bitbucket's size increased

M47h13u May 9, 2023

Hey,

This repository was close from the 4GB limit (3.96GB).

I used BFG to remove most .ane .swc and .fla files from the history. Big lines:
- git clone --mirror https://XXXXXXXX:YYYYYYYY@bitbucket.org/workspace-id/repo.git
- java -jar bfg-1.14.0.jar --delete-files *.ane
- java -jar bfg-1.14.0.jar --delete-files *.swc
- java -jar bfg-1.14.0.jar --delete-files *.fla
- cd domination.git
- git reflog expire --expire=now
- git gc --prune=now --aggressive
- git push

While on a freshly cloned repo git count-objects -vH shows 135.12MiB, bitbucket shows 4.1GB

Following this question could anyone from the team run git gc on the repository, please ? Or did I messed up something during the cleanup ?

(I do upvote this feature request)

Best Regards,
Mathieu

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2023

Hi Mathieu and welcome to the community!

I ran a git gc for the repository; its size has been reduced very close to the size you're seeing locally, and you should be able to push new commits. Is everything ok on your end now?

Just a heads up, I removed the repo details from your post to comply with our privacy policy.

Kind regards,
Theodora

M47h13u May 10, 2023

Hey Theodora,

Thanks a lot for your diligent feedback. Everything's fine now \o/

> I removed the repo details from your post to comply with our privacy policy.

Duly noted

Best Regards,
Mathieu

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2023

Hi Mathieu,

That's good to hear, thank you for the update.

Please feel free to reach out if you ever need anything else!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events