Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Respository size over 2gb

Yapiko
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!
August 12, 2019

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

 

 

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 12, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events