Same issue as reported in here:
https://community.atlassian.com/forums/Bitbucket-questions/Cannot-Push-to-Bitbucket-Repo-Exceeds-1-GB-Limit/qaq-p/3038038
And I have cleaned up large repository from my workspace.
It seems `git gc` doesn't automatically run on Bitbucket remote server, could you kindly trigger it?
Hi @inamiy
Welcome to the Community.
I have attempted to reduce the size of your largest repositories by executing a garbage collection, but it has not reduced the size much, and your workspace is still > 1GB:
443.1 MB
201.6 MB
You have a couple of options to resolve this:
This is the fastest way to solve the problem, but loses metadata such as PRs, Pipelines, Permissions, etc.
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
3. Perform cleanup operations locally to reduce the size
4. Once complete, push those repositories back to your workspace by creating a blank repository with the same name of the deleted repository, then mirror pushing the contents of the cleaned repository:
HTTPS
git push --mirror https://<username>@bitbucket.org/<WorkspaceID>/<RepoName>.git
SSH
git push --mirror git@bitbucket.org:<WorkspaceID>/<RepoName>.git
NOTE: This will remove metadata such as PR's/pipelines/permissions etc but will keep your commit history and binary files intact.
1. Upgrade to a paid plan and utilise our 30-day trial period to restore functionality and provide more time to reduce your repository directly without deletion. You can choose to continue or cease your trial before the end of the 30-day period.
2. If you encounter any issues during this period - you may raise a ticket directly with our support team using your workspace URL:
https://support.atlassian.com/contact/
Please let me know how this goes.
Best regards,
Ricardo
Welcome to the Atlassian Community @inamiy !
I will request Atlassian's help as someone else reported the same odd behavior today.
Usually they will get back to you within 2 days.
Best,
Fadoua
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.