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,365,308
Community Members
 
Community Events
168
Community Groups

User mistakenly pushed very large file - how can I clean up the repo?

Hi, a user (actually the owner of a repo I am an admin in) just mistakenly pushed a .FBX file containing ~700MB of textures to our repo, along with several other large texture files. Following this I was unable to fetch the repo, or even to view the Commit page for that commit - the webpage timed out. I advised them to make a local backup of their branch and then deleted the offending branch from the repo in BitBucket, as I couldn't fetch it myself to reset the branch.

This has allowed me to fetch the repo again, but I am unable to push as the repo is now 4.58GB, over the 4GB limit - we were at around 1.5GB before.

I have turned on, and asked them to turn on, "Delete dangling commits when over size limit", but this has had no effect. This page says to raise a support ticket to run git gc on the repo, but I cannot see how to do that, as the support page directs me here.

In the near future I will be setting us up with LFS - I could just really do to get things moving again right now!

1 answer

1 accepted

0 votes
Answer accepted
Ben Atlassian Team Sep 20, 2022

G'day Chris!

Welcome to the Bitbucket Cloud community! :) 

The reason you have been directed here is because you have contacted us from a free workspace - Free workspaces are only entitled to support from our Bitbucket Cloud community except if the issue relates to invitations for users not being received.

I have performed a garbage collection in the backend to reduce your repository size from 4.58GB to 783.1MB.

I would suggest following the below article in future for when you need to convert to GIT LFS:
https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Hi Ben,

Thanks so much!

Kind regards,

Chris

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events