Reduce Repo Siz
Asked by aidyntemekov:

Hello everyone!  
How to reduce repo size?  
Last time I asked Atlassian team to ran garbage collection, but now I don't have this option.  
What do I need to do?


Answers:
author: Theodora Boudale
body: Hi [@aidyntemekov](/t5/user/viewprofilepage/user-id/667782),

I can run a garbage collection for your repo. Can you please provide the repo name masked (e.g. the first two and last two letters of the repo, or any combination of letters from its name that will help me identify it among the ones you have access to)?

Please keep in mind that the garbage collection by itself may not be enough if you version large and/or binary files in the repo. However, I can run the git gc first, and if needed, I can provide you with further steps on how to reduce the repo's size.

Kind regards,  
Theodora

comments: author: aidyntemekov
body: Hello!  
Yes, the repo name is sho\*\*\*et.  
Thank you!


author: Theodora Boudale
body: Hi [@aidyntemekov](/t5/user/viewprofilepage/user-id/667782)!

Thank you for the info. I ran a git gc on this repository; its size has been reduced, but not by a lot.

I would suggest reducing the repo's size further, if possible. You can check this reply of mine to a different question, where I share more details.

* <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

If you decide to proceed with the steps mentioned in that post and rewrite history in the repo with BFG, please keep in mind that the repo's size will get increased again once you push your changes. The repo will then need another git gc for the old commits (prior to history rewrite) to get removed and to get its size reduced. You can let me know here, and I can run another git gc for the repo.

If you have any questions about the information I shared in the post I linked, please feel free to let me know as well.

Kind regards,  
Theodora


author: aidyntemekov
body: I think 1.34 gb is enough, I didn't quite understand from your answer how to use the BFG method


author: Theodora Boudale
body: Hi [@aidyntemekov](/t5/user/viewprofilepage/user-id/667782),

If the size is good enough for you, that's ok.

I share quite a lot of info in the post I linked in my previous reply. In case you decide to reduce your repo's size further, please let me know which part or which parts of my reply are unclear, and I can explain further.

Kind regards,  
Theodora


author: aidyntemekov
body: Hello! I need help again!  
Please run garbage collection in my repo sho\*\*\*et.


author: Theodora Boudale
body: Hi [@aidyntemekov](/t5/user/viewprofilepage/user-id/667782)!

I ran a git gc for the repo and its size has been reduced.

Please feel free to let me know if you need anything further.

Kind regards,  
Theodora


author: aidyntemekov
body: Thank you!


author: Theodora Boudale
body: You are very welcome!


author: Aron Gombas _Midori_
body: It is still the same ping-Atlassian "process".

I see people asking for the same on this community site, then someone from Atlassian replies to them and runs the garbage collection in their repo.


Tags: bitbucket-cloud

cloud

repo-size