Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,528
Community Members
 
Community Events
175
Community Groups

Repository size exceeds limit

Hello!

Bitbucket mentions that the size of the repo is currently 4.78 GB of 4 GB. When cloned, the repository weighs less:

count: 0
size: 0 bytes
in-pack: 38024
packs: 1
size-pack: 1.14 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

Can you please run git gc for the remote repository?

3 answers

1 accepted

0 votes
Answer accepted

Hi @АЯКС Digital,

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

Please keep in mind that if you do a simple clone of the repo in order to run git count-objects -Hv, only the repo's main branch will get cloned. If you want to compare the local vs remote size, I would recommend cloning with git clone --mirror <repo_url>, so that you get all the branches locally, and then run git count-objects -Hv in that mirror clone.

You created a question about this issue on Friday as well, are there frequent force pushes, rebase, or history rewriting in the repo? Frequent history rewrites / force pushes, operations that mark commits as unreferenced / delete commits, will become garbage and thus increase repository size.

You should be able to push to the repo now, however, I would recommend reducing its size further, if possible. You can check this post of mine in a different question with 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.

Kind regards,
Theodora

Thank you very much for your reply and for your work!

This happened again with the repositories, because, unfortunately, another developer forgot to clone the project and sent a push, so the entire history that was cleaned was returned.

In the future, we will further reduce the size of the repository, but at this stage, the main thing is to be able to continue working.

Thanks for the link, we'll take a look!

Like Theodora Boudale likes this

Thank you for your reply, that makes sense.

If you need any further help in the future, please feel free to reach out.

You are also very welcome, I'm glad to have helped!

@Theodora Boudalecan you help to solve this problem?

0 votes

Hi @АЯКС Digital ,

This other post may be useful,

 https://community.atlassian.com/t5/Bitbucket-questions/How-to-performgit-gc-on-a-remote-repository-after-BFG-large/qaq-p/1771941

and you can also mention Caroline if you need support from ther Atlassian Team.

Thanks for the answer! But, unfortunately, I ran all the garbage collection commands, they worked for the local repository, but they do not work for the remote one.

So I want to ask @Caroline R or someone from the Atlassian team to help me run git gc on a remote server to clean up the garbage in the repository as I am currently unable to push code to my repository

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events