Forums

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

Request Garbage collection

nfrance709 March 15, 2025

 

I removed some large files from a repo and it doubled in size, its currently 1.63 GB.

Can you run garbage collection to see if the repo reduces in size?

Regards, Neil

2 answers

2 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2025

Hi Neil and welcome to the community!

I saw one repo with a size of 1.6 GB among the ones you have access to. I ran a git gc for it and its size has been reduced.

Does it look on now on your end?

Kind regards,
Theodora

nfrance709 March 17, 2025

Thank you, the size is correct now.

Like • Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2025

That's good to hear and you are very welcome. Please feel free to reach out if you ever need anything else!

0 votes
Answer accepted
Hrudu Shibu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2025

Hi @nfrance709 ,

To shrink your Bitbucket repo:

  1. Backup: Clone with --mirror.
  2. Remove Large Files: Use BFG Repo Cleaner or git filter-branch.
  3. Garbage Collection:

git reflog expire --expire=now --all 

git gc --prune=now 

  1. Force Push:

git push --all --force 

git push --tags --force 

nfrance709 March 17, 2025

Thank you for that information.

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