Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,390
Community Members
 
Community Events
165
Community Groups

repository size exceeds limit

hii..

My repository size becomes over the limit of 4gb. So I reset the branch to commit before the large commit and gave git push --force. The large files were deleted now but repo size if still 4.8 gb.

2 answers

1 accepted

1 vote
Answer accepted
Caroline R Atlassian Team Oct 07, 2021

Hi, @Priya

I ran the GC against your repository and managed to reduce its size to 1.2 GB. 

I also would like to share with you that we already have a feature request to allow users to mark repositories for git GC, as you can check here:

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it here.

Feel free to share any additional questions or concerns regarding this case.

Kind regards,
Caroline

Thanks Caroline!!!

Hello @Priya ,

Thank you for reaching out to Atlassian Community!

Doing a force push after rewriting history locally will mark the remote repo with unreferenced objects and replace it with what you have pushed. The size will increase because it includes the local size and your remote size. In such cases, we run the garbage collector to remove the unreachable objects to reduce repository size. Kindly contact support in order to get GC executed on your repo.

Additionally, I would like to suggest to refer this KB page  that explains the steps to reduce the repository size.

Moreover you can enable the Lab under personal account settings "Delete dangling commits when over size limit", use below steps to enable the lab.

  • Hover over "Your profile and personal settings" at the bottom left on the Bitbucket Landing page, now click on tab "Personal Settings".
  • Under personal settings go to "Labs" tab and there will be lab with the name "Delete dangling commits when over size limit".
  • Just enable this (it will perform the automatic garbage collection in future when a force push or history re-write is performed).

Hope that helps!!

Thanks!
Harsh Sharma

Thanks Sharma...

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,239 views 2 9
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