Your workspace has exceeded the 1 GB limit and has been placed in read-only mode. Learn more about upgrading your plan and checking storage usage. — Learn more
% git push --set-upstream origin master --force
Enumerating objects: 6798, done.
Counting objects: 100% (6798/6798), done.
Delta compression using up to 22 threads
Compressing objects: 100% (1321/1321), done.
Writing objects: 100% (6798/6798), 3.87 MiB | 1.78 MiB/s, done.
Total 6798 (delta 5305), reused 6557 (delta 5083), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (5305/5305), done.
remote: This workspace is over the 1 GB size limit. Reduce the size of your workspace or upgrade to a Standard or Premium plan to increase the size limit.
remote:
remote: Upgrade to a Standard or Premium plan: https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Change-your-plan
remote: Or learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits.
To bitbucket.org:virus_found/home-configs.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'bitbucket.org:virus_found/home-configs.git'
% du -sh .git ; git count-objects -vH
5.0M .git
count: 0
size: 0 bytes
in-pack: 7598
packs: 1
size-pack: 4.23 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
Hi @virus_found
Welcome to the community.
Could you confirm if you've used the BFG tool to reduce the size of your repository? - https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/
If not yet, could you try that and push again?
Regards,
Mark C
Hello, I confirm that yesterday I tried git-filter-branch to shrink the repo. It did not work and I sent the details in the startning message.
Now I tried BFG. And it did not work either. The remote seems not to be interested in what I am pushing now and what size it is since I once reached the 1Gb limit.
17:16:35 bare/home-configs.git % du -hs . ; git count-objects -vH
1.1G .
count: 0
size: 0 bytes
in-pack: 7189
packs: 1
size-pack: 1.02 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
17:16:59 bare/home-configs.git % cd ..
17:17:27 /tmp/bare % java -jar /tmp/_ff/bfg-1.15.0.jar --strip-blobs-bigger-than 3M home-configs.git
Using repo : /tmp/bare/home-configs.git
Scanning packfile for large blobs: 7189
Scanning packfile for large blobs completed in 3,040 ms.
Found 128 blob ids for large blobs - biggest=559242656 smallest=3202428
Total size (unpacked)=1444502920
Found 1511 objects to protect
Found 2 commit-pointing refs : HEAD, refs/heads/master
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit 2068bd68 (protected by 'HEAD') - contains 1 dirty file :
- .zsh_history (3.5 MB)
WARNING: The dirty content above may be removed from other commits, but as
the *protected* commits still use it, it will STILL exist in your repository.
Details of protected dirty content have been recorded here :
/tmp/bare/home-configs.git.bfg-report/2025-06-06/17-19-54/protected-dirt/
If you *really* want this content gone, make a manual commit that removes it,
and then run the BFG on a fresh copy of your repo.
Cleaning
--------
Found 385 commits
Cleaning commits: 100% (385/385)
Cleaning commits completed in 175 ms.
Updating 1 Ref
--------------
Ref Before After
---------------------------------------
refs/heads/master | 2068bd68 | 02e94fa4
Updating references: 100% (1/1)
...Ref update completed in 2 ms.
Commit Tree-Dirt History
------------------------
Earliest Latest
| |
.......................DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
D = dirty commits (file tree fixed)
m = modified commits (commit message or parents changed)
. = clean commits (no changes to file tree)
Before After
-------------------------------------------
First modified commit | b4599560 | 32f8a0c3
Last dirty commit | 44df784f | 03659fe9
Deleted files
-------------
Filename Git id
----------------------------------------------------------------------------------------------
.zsh_history | 1f7f9374 (3.5 MB), 1b8e9a3b (3.6 MB), ...
20190419 131314.m4a | abdd8701 (3.7 MB)
20190629 170750.m4a | dfa59cab (9.2 MB)
20190629 172819.m4a | 812def0c (4.7 MB)
20190802 230345.m4a | 4ba62e38 (14.5 MB)
20190802 234349.m4a | dddf03b8 (3.4 MB)
20190924 130735.m4a | 8c2f4c8a (8.7 MB)
20190925 103341.m4a | 599281ba (7.6 MB)
2ahCnbsAY5g.jpg | 0bbd0b0f (3.4 MB)
4xsd-XsMnAg.jpg | d3a31751 (4.1 MB)
RsGOR-J4xpM.jpg | 704f1c28 (3.5 MB)
W4S3UDlqapw.jpg | 00f660a9 (3.2 MB)
_7gSQF4JlhY.jpg | beaf042b (3.1 MB)
bg_desktop_01.png | e1e3dad5 (3.3 MB)
bg_desktop_02.png | b887ba1b (6.4 MB)
...
In total, 495 object ids were changed. Full details are logged here:
/tmp/bare/home-configs.git.bfg-report/2025-06-06/17-19-54
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
17:19:56 /tmp/bare % cd home-configs.git/
17:20:41 bare/home-configs.git % git reflog expire --expire=now --all && git gc --prune=now --aggressive
Enumerating objects: 7189, done.
Counting objects: 100% (7189/7189), done.
Delta compression using up to 22 threads
Compressing objects: 100% (6677/6677), done.
Writing objects: 100% (7189/7189), done.
Selecting bitmap commits: 328, done.
Building bitmaps: 100% (108/108), done.
Total 7189 (delta 5431), reused 1338 (delta 0), pack-reused 0 (from 0)
17:21:00 bare/home-configs.git % gs
fatal: this operation must be run in a work tree
17:21:31 bare/home-configs.git % git push
Enumerating objects: 7189, done.
Writing objects: 100% (7189/7189), 97.51 MiB | 7.38 MiB/s, done.
Total 7189 (delta 0), reused 0 (delta 0), pack-reused 7189 (from 1)
remote: Resolving deltas: 100% (5431/5431), done.
remote: This workspace is over the 1 GB size limit. Reduce the size of your workspace or upgrade to a Standard or Premium plan to increase the size limit.
remote:
remote: Upgrade to a Standard or Premium plan: https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Change-your-plan
remote: Or learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits.
To bitbucket.org:virus_found/home-configs.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'bitbucket.org:virus_found/home-configs.git'
1 17:22:00 bare/home-configs.git % du -hs . ; git count-objects -vH
98M .
count: 0
size: 0 bytes
in-pack: 7189
packs: 1
size-pack: 97.70 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
17:22:39 bare/home-configs.git %
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, that time I tried git-filter-branch tool and that did not work according to the starting message. Now I tried BFG and the result is the same.
17:16:35 bare/home-configs.git % du -hs . ; git count-objects -vH
1.1G .
17:16:59 bare/home-configs.git % cd ..
17:17:27 /tmp/bare % java -jar /tmp/_ff/bfg-1.15.0.jar --strip-blobs-bigger-than 3M home-configs.git
Using repo : /tmp/bare/home-configs.git
Scanning packfile for large blobs: 7189
Scanning packfile for large blobs completed in 3,040 ms.
Found 128 blob ids for large blobs - biggest=559242656 smallest=3202428
Total size (unpacked)=1444502920
Found 1511 objects to protect
Found 2 commit-pointing refs : HEAD, refs/heads/master
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit 2068bd68 (protected by 'HEAD') - contains 1 dirty file :
- .zsh_history (3.5 MB)
WARNING: The dirty content above may be removed from other commits, but as
the *protected* commits still use it, it will STILL exist in your repository.
Details of protected dirty content have been recorded here :
/tmp/bare/home-configs.git.bfg-report/2025-06-06/17-19-54/protected-dirt/
If you *really* want this content gone, make a manual commit that removes it,
and then run the BFG on a fresh copy of your repo.
Cleaning
--------
Found 385 commits
Cleaning commits: 100% (385/385)
Cleaning commits completed in 175 ms.
Updating 1 Ref
--------------
Ref Before After
---------------------------------------
refs/heads/master | 2068bd68 | 02e94fa4
Updating references: 100% (1/1)
...Ref update completed in 2 ms.
Commit Tree-Dirt History
------------------------
Earliest Latest
| |
.......................DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
D = dirty commits (file tree fixed)
m = modified commits (commit message or parents changed)
. = clean commits (no changes to file tree)
Before After
-------------------------------------------
First modified commit | b4599560 | 32f8a0c3
Last dirty commit | 44df784f | 03659fe9
Deleted files
-------------
Filename Git id
----------------------------------------------------------------------------------------------
.zsh_history | 1f7f9374 (3.5 MB), 1b8e9a3b (3.6 MB), ...
20190419 131314.m4a | abdd8701 (3.7 MB)
20190629 170750.m4a | dfa59cab (9.2 MB)
20190629 172819.m4a | 812def0c (4.7 MB)
20190802 230345.m4a | 4ba62e38 (14.5 MB)
20190802 234349.m4a | dddf03b8 (3.4 MB)
20190924 130735.m4a | 8c2f4c8a (8.7 MB)
20190925 103341.m4a | 599281ba (7.6 MB)
2ahCnbsAY5g.jpg | 0bbd0b0f (3.4 MB)
4xsd-XsMnAg.jpg | d3a31751 (4.1 MB)
RsGOR-J4xpM.jpg | 704f1c28 (3.5 MB)
W4S3UDlqapw.jpg | 00f660a9 (3.2 MB)
_7gSQF4JlhY.jpg | beaf042b (3.1 MB)
bg_desktop_01.png | e1e3dad5 (3.3 MB)
bg_desktop_02.png | b887ba1b (6.4 MB)
...
In total, 495 object ids were changed. Full details are logged here:
/tmp/bare/home-configs.git.bfg-report/2025-06-06/17-19-54
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
17:19:56 /tmp/bare % cd home-configs.git/
17:20:41 bare/home-configs.git % git reflog expire --expire=now --all && git gc --prune=now --aggressive
Enumerating objects: 7189, done.
Counting objects: 100% (7189/7189), done.
Delta compression using up to 22 threads
Compressing objects: 100% (6677/6677), done.
Writing objects: 100% (7189/7189), done.
Selecting bitmap commits: 328, done.
Building bitmaps: 100% (108/108), done.
Total 7189 (delta 5431), reused 1338 (delta 0), pack-reused 0 (from 0)
17:21:31 bare/home-configs.git % git push
Enumerating objects: 7189, done.
Writing objects: 100% (7189/7189), 97.51 MiB | 7.38 MiB/s, done.
Total 7189 (delta 0), reused 0 (delta 0), pack-reused 7189 (from 1)
remote: Resolving deltas: 100% (5431/5431), done.
remote: This workspace is over the 1 GB size limit. Reduce the size of your workspace or upgrade to a Standard or Premium plan to increase the size limit.
remote:
remote: Upgrade to a Standard or Premium plan: https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Change-your-plan
remote: Or learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits.
To bitbucket.org:virus_found/home-configs.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'bitbucket.org:virus_found/home-configs.git'
1 17:22:00 bare/home-configs.git % du -hs . ; git count-objects -vH
98M .
count: 0
size: 0 bytes
in-pack: 7189
packs: 1
size-pack: 97.70 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(My post is being deleted two times already. Posting the third time, obfuscating the output.)
Hello, that time I tried git-filter-branch tool and that did not work according to the starting message. Now I tried BFG and the result is the same.
17:16:35 bare/home-configs.git % du -hs . ; git count-objects -vH
1.1G .
17:16:59 bare/home-configs.git % cd ..
17:17:27 /tmp/bare % java -jar /tmp/_ff/bfg-1.15.0.jar --strip-blobs-bigger-than 3M home-configs.git
Using repo : /tmp/bare/home-configs.git
<...>
In total, 495 object ids were changed. Full details are logged here:
/tmp/bare/home-configs.git.bfg-report/2025-06-06/17-19-54
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
17:19:56 /tmp/bare % cd home-configs.git/
17:20:41 bare/home-configs.git % git reflog expire --expire=now --all && git gc --prune=now --aggressive
Enumerating objects: 7189, done.
Counting objects: 100% (7189/7189), done.
Delta compression using up to 22 threads
Compressing objects: 100% (6677/6677), done.
Writing objects: 100% (7189/7189), done.
Selecting bitmap commits: 328, done.
Building bitmaps: 100% (108/108), done.
Total 7189 (delta 5431), reused 1338 (delta 0), pack-reused 0 (from 0)
17:21:31 bare/home-configs.git % git push
Enumerating objects: 7189, done.
Writing objects: 100% (7189/7189), 97.51 MiB | 7.38 MiB/s, done.
Total 7189 (delta 0), reused 0 (delta 0), pack-reused 7189 (from 1)
remote: Resolving deltas: 100% (5431/5431), done.
remote: This workspace is over the 1 GB size limit. Reduce the size of your workspace or upgrade to a Standard or Premium plan to increase the size limit.
remote:
remote: Upgrade to a Standard or Premium plan: https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Change-your-plan
remote: Or learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits.
To bitbucket.org:virus_found/home-configs.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'bitbucket.org:virus_found/home-configs.git'
1 17:22:00 bare/home-configs.git % du -hs . ; git count-objects -vH
98M .
count: 0
size: 0 bytes
in-pack: 7189
packs: 1
size-pack: 97.70 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @virus_found
Thanks for trying it out.
For that, you have a couple of options to resolve this:
Option 1 - Delete & recreate the repositories
This is the fastest way to solve the problem, but loses metadata such as PRs, Pipelines, Permissions, etc.
Perform a clone of those repositories for backup purposes
Delete those repositories from your workspace to free up space and allow you to push. NOTE: This will permanently remove metadata such as PR's/pipelines/user permissions etc.
Identify the largest files in your repositories by executing the following command:
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
Perform cleanup operations locally to reduce the size
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.
Option 2 - Temporarily upgrade
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.
If you encounter any issues during this period - you may raise a ticket directly with our support team using your workspace URL: Atlassian Support
Please let me know how this goes.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How else am I supposed to "Reduce the size of your workspace" ?
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.