How to push in read-only mode?

Hi, 

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:
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.

 

3 answers

1 accepted

The helpdesk gave me following solution, which was very helpful to me.

 

 
"As this repository is extraordinarily large, you should reset the head of your repository then attempt a force push and let us know how it goes.
 
git reset --hard HEAD~1
git push --force
"
0 vote

You have to open a support ticket to get this fixed from Bitbucket's side.

0 vote

Hi! I checked the Bitbucket account associated to your email address but I couldn't find any repo over 2GB in size, are you referring to a different Bitbucket Cloud account? Can you share your username and repo name?

Cheers!

Ana

It's OK now. I could fix it thanks to the helpdesk. 

Glad to hear it's solved!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,369 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you