My bitbucket-repository is too big (> 2GB) so I am now in 'read-only mode'.
Because I want to use my repository, I cleaned (= delete all nonnecessary files) using BFG (https://rtyley.github.io/bfg-repo-cleaner/) which is recommended by Atlassian (see https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html). I used BFG to do the trick and I deleted some of the big unnecessary files, but when I want to do the final step: push the repository back, it says that my repo is too big:
"remote: repository is in read only mode (over 2 GB size limit).
remote: Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw."
How can I clean up my repository when I can't push anything ?
I am fighting with it almost 3 weeks so I hope I can get an answer soon (because it starts to frustrate me.
The helpdesk gave me following solution, which was very helpful to me.
I'm having the same issue. Our repo: `tomis-data` is over 2GB and I went through the recommendations here to remove the large files and reflog with BFG but everytime I try to `git push` or `git push -f`, it says the repo "is over the size limit and will not accept further additions. Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw" which is the exact method I used. Any help would be greatly appreciated!
Hi @alessio harri ,
You don't need to contact Support for that. If your repo is too large you'll need to fix that on your side following the instructions in the article Reduce repository size. In short, you need to reset back as many commits as necessary to make your repo under 2GB and then force push.
Let us know if something is not clear!
Hi @tlipska ,
Is your local repository over 2GB? You can run the following command in your terminal to find out:
git count-objects -Hv
In that case, I'd advise you to look at your repo and see what's making it so big. If it contains images, binary files, etc then you should consider using Git LFS (Large File Storage) as Git is not a good candidate for storing this kind of files. For more information, you can read Use Git LFS with Bitbucket.
If your local repository is under 2GB, then we can run a garbage collection in the remote to bring it to the right size. Please let us know the name of the repo and we'll do it for you.
I've been stuck with the same problem.
Got by accident commited some files that are unnecessary, tried to use the BFG, i think it worked, but i can't push the fix.
The project is not on my personal account, but on my team.
The files are:
Tierra Digital Ar.ipa
Tierra Digital Ar.app.dSYM.zip
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events