We have a repository that is over 2gb and I have been trying to clean the repository up. I have tried to remove files and also to shrink the *.pack file and are not able to push the changes to the repository due to the repo being over the 2gb limit.
I have seen some other communications of where a member of the Atlassian Team has assisted in executing a git gc command on the repository that needs to be reduced in size.
Let me know if there is any more information needed. The current size of the repository is 2.1 GB
Hello @Brent Willman,
Welcome to the Community.
I ran GC for three repositories with that size which were accessed recently, and their size reduced to 500-600 Mb each. There are way more large repositories owned by the account in question, so I hope I guessed which did you mean.
Hope this helps.
No worries, glad that it helped.
Unfortunately I can't list repository names here since Community questions are public, so links don't look human readable but they should work as long as you have access to those repositories.
<links were here>
I have captured the repositories you have mentioned if you can not sure if it is possible to remove them from your previous comment.
Couple more questions for this process.
If the repository is over 2 gb and you don't want to revert back to a previous commit and a gc will reduce the size is there a way to do this without reaching out to an Atlassian team member?
Also if the repository is under 2gb is a bitbucket admin able to execute the GC without contacting an Atlassian team member? If so what is the command you executed? If you do run a gc on your local repository is there a way to push the change to the repository?
No, there's no way to force trigger GC from the client side or in the UI. GC kicks in automatically from time to time after you push to the repository, however this doesn't happen after every push since GC is a relatively expensive operation.
So, if a repository is under 2 Gb, and you've reduced repo size and pushed the result up, Bitbucket will catch up after some number of subsequent pushes — just keep working in that repository. If, however, the repository jumped beyond 2 Gb and hence was put into read-only mode, you'll only be able to push commit removals. If you believe aggressive GC would help, the only way to request it is via support ticket.
If you do run a gc on your local repository is there a way to push the change to the repository?
There's no such concept in Git. GC collects dead (as in, unreachable) objects from the local copy of the repository. Such objects nor their IDs are never pushed over the network, GC is a local operation.
Hope this helps.
Hi @Daniil Penkin , I am also facing one similar problem in my bitbucket cloud repositories. Its already cross 2 GB space but I already cleanup in local repo and also deleted branch that was having high data volume but still in remote repo size is not resolving.
Can you please help me on this.
Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...
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