Forums

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

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

Chris Nightingale
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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)

Chris Nightingale
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2022

Hi Ben,

Thanks so much!

Kind regards,

Chris

Suggest an answer

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

Atlassian Community Events