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,300,977
Community Members
 
Community Events
165
Community Groups

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

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

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
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,263 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