The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Julien Dephix
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events