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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi
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?
Thanks
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.
Please note:
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.
Kind regards,
Theodora
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikael,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also we did the Undoing the last push, but it seems to didn't affect the size of the repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not the last commit you will have to rewind your history, either by using git filter-branch or the BFG utility. Have a look a this KB for instructions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.