How to fix repository after trying to delete a file from complete repository?

I tried to delete a file from complete repository (1.6 GB) following this description:

After executing

git push origin --force --all

the size of the repository was 2.2 GB.

How can I fix this?

1 answer

0 votes

Hi Philipp! Are you using Bitbucket Cloud? If so, please refer to our official documentation at Reduce repository size to make sure you followed all the right steps. Also, keep in mind that it can take some time for the automatic garbage collection to run, this will run a number of housekeeping tasks within the current repository (such as compressing file revisions to reduce disk space and remove unreachable objects which may have been created). If your repo is still showing 2.2GB after some time, please let us know its name and we'll have a look from our side.



Hi Ana,

I could not reduce the size with garbage collecting.

The repo is dappremium/dap_typo.

Could you take a look?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

286 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you