My repository has been increasing with some commits and it was at 1,9gb so I wanted/needed to decrease its size.
I have done "git filter-branch --index-filter 'git rm --cached --ignore-unmatch *.ipa' -- --all" because when doing
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| sed -n 's/^blob //p' \
| sort --numeric-sort --key=2 \
| cut -c 1-12,41- \
I get a lot of .ipa files that aren't needed so I'd like to get rid of them. Then I did "git count-objects -vH" and the size-pack size went form 2.95 to 1.47 GiB. Then "git push --force", and the repository size went from 1.9 to 2.66gb
I also tried "git forget-blob name",using as name its id, file name or location, but it didn't seem to do anything.
I cloned the project and it is 1.5gb in the new repository, but the old one remains the same.
It's AppsReactNative
Hello @Yapiko,
I came across your question, found the repository in question and triggered garbage collection for it just now. Repo size reduced to 1.5 Gb.
Note that as the guide suggests for a case of such big repository, after reducing its size you should contact support asking to trigger server-side garbage collection (normally, garbage collection runs occasionally, not on every change). That way we'll be able to action your request quicker.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.