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
We have accidentally uploaded a backup and we have exceeded the allowed limit of 4Gb.
I have deleted the files locally, but I can no longer commit because I always get the same error.
Can you please help me?
I can see one repo over the 4 GB limit from the ones you have access to. I ran a git gc on it, and its size is 1.4 GB now.
If you still want to remove the problematic file(s) from the repo, please note that committing the file's deletion is not going to remove it from the repo's history.
The proper way to do that would be to rewrite history to remove this file from the repo's history, as Mikael suggested.
You can take a look at BFG repo cleaner page on how to do that:
In the section Examples, you will see that you can use the argument --delete-files to remove specific files.
git clone --mirror repo_url
We have the following feature request to allow users to run a git gc on their remote repo, you can add yourself as a watcher in that request if you'd like to get notified via email on updates: https://jira.atlassian.com/browse/BCLOUD-11593
If you have any questions, please feel free to let me know.
Welcome to Atlassian Community?
Removing the files locally in your repository will not reduce the size, since Git keeps a full history of your repository. If the commit is the last one that you did you have to revert that commit/push. If it is not the last commit you have to remove the file from the history and then push it to Bitbucket. Please have a look at Reduce repository size for instructions on how to solve both scenarios.
Thank you for your help. The problem is that the commit has a lot of changes and it is not the latest commit, i just need to increase the repository size temporarily to make a new commit and delete that file, but i don't know if someone can help me with that. I have tried other things, but is not working.