Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Repository is over the size limit (2 GB) and will not accept further additions. Edited

Hello,

I am having a problem with the size of my repo. I have upload a large file but now i cannot delete it.. when i delete from my computer and push i have same error

I have tried all i have found in this community, but still not working

 

My repo is https://bitbucket.org/k20one/quotes-android/src/master/

 

Thanks,

2 answers

0 votes
Hana Kučerová Community Leader Nov 19, 2020

Hi @Gerard Cadenas Montserrat ,

please, see this article how to get rid of the commit with the large file. Basically you need to get the remote repository to the state, in which it was before the large commit file.

0 votes

Hi Gerard,

When a repo goes over 2 GB, you can follow the steps in the doc that Hana linked, specifically the "Undoing the last push" section, to remove the read-only limitation from the repo.

I went ahead and ran a git gc on this repo and its size went down to 1.5 GB, so you and your team should be able to push now. However, its size is still quite large and it would be a good idea to reduce it further, if possible.

If the increase in size was due to this last commit only with the large file, you can still follow the same steps and reset to the commit before the bad one. Another git gc will be needed after you push that, you can either post here and I can run it, or you can open a support ticket via https://support.atlassian.com/contact/#/ with priority "Level 1" to get a faster response, if your repo goes again over 2 GB and you are blocked from working.

If you have more large files in the repo that do not need to be versioned, you may want to consider removing them from Git history:

In case you need to version any large files, another option would be to move them to Git LFS:

If you face any issues or have any questions, please feel free to let us know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,111 views 0 7
Read article

Community Events

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

Events near you