[Solved]Restoring bare repository on to limited exceeded repository Edited

I've been working on a project for a year and a half. recently we decided to use Large File System to handle our repo which was creeping up to 2gb.

We followed the instructions using the BFG tool to use lfs. However once complete the repo grew to 2.5 gb. I tried following instructions for aggressive gc and prune command, but that hasn't resulted in any size improvement.  The problem now is that we are locked in read only mode.

The instructions had making a bare copy of the repo. I would like to restore this repo so we can at least get out of read only mode. However, I can't git push --force on the bare repo because the system is locked out.

I'm wondering what can be done to get back to the 1.9gb repo again so we can see about trying another way to reduce the repo size.


PS: My git fu is ppor. Any help with explicit instructions and how it works would be very helpful. At this time I'm browsing google for potential solutions, but nothing has worked so far.

1 answer

0 votes


Hi Jason, are you on Server or Cloud? If you're in Cloud, can you let us know the name of the repo so we can have a look?

Sometimes after the steps have been followed some new references are created, which are automatically cleaned after some time. If you're certain that you reduced the size of the repo as explained at Reduce repository size you can just clone the reduced repository as a new one and it will show the correct size (note that in order to use the push --force you first need to do a reset as many commits back as to get it under 2GB).



Thank you very much. I became desperate last night and made a ticket support at the Atlassian. Thank you very much. Some one did a garbage clean on the repo last night on the server. This morning I found out that our system is so much better. It's not 600mb.

Thank you to the team for helping us with this.

I noticed that our LFS storage is 2.7gb my questions are

* I think LFS was run twice while trying to figure out. Would one the GC clean out the original.

* I hear LFS is uncompressed. Would the 2.7 be normal for a game project of 1.9gb

* Is the 5gb lfs storage on a per project, or is it a shared storage space among all projects?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,931 views 7 10
Read article

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