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

Repository limit exceeded, rebased but warning still there.

Gabriel Peixoto de Carvalho April 30, 2020

Hello all,

This is my first question, so apologize for any misunderstandings.

First, I made a mistake and pushed images which are too heavy for the repository, so the space limit was reached.

After that I reset the repository to the commit before the issue happened (reset 21 commits). The I made a rebase dropping the unwanted commits. This would theoretically solve it, because remote master has been reset.

Basically I followed the instructions from bitbucket documentation:

$ git branch no_images
$ git reset --soft HEAD~20
$ git push --force (up to date)
$ git merge --ff-only no_images
$ git branch -d no_images
$ git push origin master <returns error, space exceeded remote rejected>

At this point my commits are a straight line just like before, but the commits containing image folders were removed.

However, my push are always refused, why?

How do I fix it?

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2020

Hello @Gabriel Peixoto de Carvalho ,

Welcome to the Community.

I kicked off forced garbage collection in your repository which reduced its size.

GC is an expensive operation so it doesn't run after every push, this is why there's a delay when reduced size is reflected in Bitbucket. However, if you hit the write limit by pushing a huge file, you indeed can't push new commits.

Anyway, now your repository should be accessible. Let me know if that worked.

Cheers,
Daniil

Gabriel Peixoto de Carvalho April 30, 2020

Thank you @Daniil Penkin

It solved my issue, I could push new commits.

Yeah, this was totally my fault, I did not consider space limit and I thought that the images would not be so heavy.

Again, thank you very much for the quick response.

Cheers,

Gabriel

Like Daniil Penkin likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events