Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to reverse a commit on a respository greater than 4GB in size?

Cole Ferguson November 17, 2021

Hi,

I wasn't aware of the file size limitations on bitbucket and uploaded more than 4GB in a single commit.  I'm trying to reverse the commit but I can't push the reversed commit because the repository is now of a size larger than 4GB and won't let me push anything.

How can I delete these files so that I can push again? I just want to reset my last commit.

Thanks in advance for all the help!

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2021

Hi Cole,

You can check the following documentation page on how to undo the last push:

As mentioned there, make sure you enable the Delete dangling commits when over size limit feature for your account in https://bitbucket.org/account/settings/features/, so that a garbage collection will get triggered automatically after you follow the steps on that guide. The repo size should then be reduced in a few minutes. If you don't see the repo size getting reduced a few minutes after you have followed the steps on the guide, please feel free to let me know and I can trigger a garbage collection manually.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events