You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi dev support.
I have wrong commit that push around 1GB to remote repo and my repo size exceed 4GB limit. I try to fix the commit locally as suport center told but can not force push so I decide to deleted the remote branch contain the oversize commit but nothing change.
Then I try to create branch with same name in remote repo but it seem that repo size not reduce.
Now I can not do anything to fix the problem.
Can anyone help me please.
Hi @Le Ni and welcome to the community!
Yes, I can assist you with this. I can see that your Bitbucket Cloud account has access to quite a few workspaces and repositories. Could you please let me know the last two letters of the repo and the last two letters of the workspace this repo belongs to, so I can identify the one you are talking about, and run a git gc for it?
Hi @Le Ni,
Thank you for the info. I ran a git gc for the repository and its size has been reduced. It's under the 4 GB limit now, but still quite large.
Is the large commit still part of the repo's history? If you go to the repo on Bitbucket Cloud website, and then open the Commits page of the repo, do you see the large commit listed there?
Hi @Le Ni,
Committing file deletions is not going to remove these files from the repo's history. This is only possible if you rewrite history in the repo, with a tool like BFG.
I made a detailed post about this in a different question:
It's quite long, but I would suggest reading all of it to better understand what you need to take into account. If you have any questions about the content, please feel free to let me know.
A few things that I mention in that post as well:
Hi @Le Ni,
I ran a git gc on both repositories:
Does only the second repo (main_new) have the changes with BFG?
Please feel free to let me know how you would like us to proceed now: