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

Repository is over the size limit (4 gb) and will not accept further additions

Aaditya Raj Karki October 5, 2022

limit.JPG
I can't commit. I have deleted some branch in repo to reduce its size but its not decreasing. Anyone who can help me solve this problem and explain the cause so that we can fix it together.

3 answers

0 votes
Jools October 7, 2022

Deleting branches won't do much if large files have been pushed to master/develop for instance. You need to remove them from Git cache and rewrite history.

We did that and repo still showed a high usage even though it was 30MB when checkout out.

Let's call the problematic repo "my-repo". What I did was:

  1. remove large files from "my-repo" history
  2. push to "my-repo"
  3. clone "my-repo"
  4. rename "my-repo" to "my-repo-old" in Bitbucket
  5. create a new "my-repo" on Bitbucket
  6. push repo you've cloned on step 3. 
  7. "my-repo" is now up to date and way smaller than the original one.

That's it.

0 votes
Blazej Chabierski October 7, 2022

Why would you even have a repository that's 4gb ? I would advise you to rethink of what you are keeping there.

0 votes
Aaditya Raj Karki October 5, 2022

@Caroline R  i have created new question like suggested. can you help me solve this problem. Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events