[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).

Cheers!

Ana

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

649 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot