I have reduced the repo size to 1.8 gb using git filter-repo tool and still cannot push

mindrocketsinc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2025

hello everyone

 

I have reached the limits to repo then i got block on pushing

 

later on i have reduced large files and now 

git count-objects -vH

count: 0

size: 0 bytes

in-pack: 49252

packs: 1

size-pack: 1.85 GiB

prune-packable: 0

garbage: 0

size-garbage: 0 bytes

what should i do now to unblock

I have read in many threads that i should contact Atlassian for that, the portal is redirect me here

so now what is the next step

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2025

Hi @mindrocketsinc 

I've taken a look at your workspace and can see the repo size is 1.4GB - so you shouldn't be blocked (the only time you are blocked from pushing is when the repo reaches 4GB). You will receive a notification that your repo is becoming large at the 2GB mark, but this is just a warning - it doesn't affect push.

Are you sure you're not being blocked by the file size limit setting? We introduced a feature to block pushes > 100mb by default that can cause push blocking:

  • A repo admin can navigate to Repository Settings > Repository Details > Advanced dropdown  and then disable this function (refer to documentation above)

If you'd like to make the repo smaller, there's a chance you have large size files that are contributing to the overall large size of the repo. We never recommend storing large binary files, as each commit adds the full size of that file to the repo storage and inflates the size as a result. I'd recommend executing the following command to find large files and targetting these for removal/conversion to LFS using the BFG Tool (much faster than filter-repo tool):

  • 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

Hope this helps, let me know if theres anything else I can help with.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events