Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I have encountered the following questions. What should I do? The repository is in read-only mode (m

desafullcollege August 20, 2019

Hello..

My Repository is in read-only mode (more than 2 GB size limite).

I read how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.

But I couldn't push.

Please help me.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 21, 2019

Hi, welcome to the Community!

I've checked your Bitbucket Cloud account and could see that the repo was 9.3 GB, I've run a garbage collection and the size was decreased to 3.9GB, still over the 2GB limit. 

Once you've reduced your repository, you need to do a force push to allow the reduced repo to be pushed to the remote. Keep in mind that the new size has to be under 2GB, otherwise the system will not allow it.

Alternatively, if you're still having issues even after reducing its size, you can upload the reduced repo as a new repository, as the history will remain untouched. 

Hope that helps,

Ana

desafullcollege August 21, 2019

Hello Ana.

Thanks for your answer.

If I do upgrade, will my account allow me to do the push?

Excuse me my English, I'm Venezuelan

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 21, 2019

Hi, don't worry about your English, I can understand you with no problems :) 

Upgrading your account will have no effect on the size of your repo, so you won't still be able to push the repository. If you upgrade your account, you'll get more users, more Pipelines minutes, and more LFS storage, but the size of the repositories remain the same. 

The only solution is to reduce it to under 2GB.

I hope this is clear, let me know if you have any more questions!

Best regards,

Ana

desafullcollege August 21, 2019

In my local repository we load a photo folder by mistake, we already delete it but the .pack file of our repository weighs 3 GB, that is what makes the repository great, and I don't know how to reduce it

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 22, 2019

In that case, the easiest thing to do would be to copy the files from your project to a new folder and initialize the repo again, to start from scratch. You can check this tutorial if you need help. Make sure you copy the files you want into a new folder and don't just copy/paste the whole folder, doing that would also copy the .git folder that we don't want as it contains the history of the project.  

Keep in mind that you should only do this if you don't care about keeping the history of the project. If you want to keep it, you'll need to do re-write the history so it looks like the photos were never there, but this is more complicated. You can find more information on the Git documentation.

Let us know if you need anything else.

Regards,

Ana

desafullcollege August 23, 2019

Hello Ana.
I followed your instructions and everything went well, thank you very much

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2019

I'm so glad to hear that :) 

If you need any help in the future, please contact us again.

Have a good day,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events