Reputation: 157
I have a project hosted on GitLab and this project is too huge, cf attached printscreen. Gitlab repository size.
As this Gitlab project is about 4Gb, it takes too long time to fetch the entire project with a bad internet connection...
I've tried the procedure described on this page :
git clone --bare --mirror https://gitlab.example.com/my/project.git
git filter-repo --strip-blobs-bigger-than 10M
git filter-repo --blob-callback '
if blob.data.startswith(b"version https://git-lfs.github.com/spec/v1"):
size_in_bytes = int.from_bytes(blob.data[124:], byteorder="big")
if size_in_bytes > 10*1000:
blob.skip()
'
git push origin --force 'refs/heads/*
After the push
, there is no changes on my repository...
Do you have an idea to reduces it ? Thanks
Upvotes: 0
Views: 1392
Reputation: 157
After removing old pipelines and artifacts, I've succeed to free up space. If in the future, someone has the same "problem", I've used this script
Upvotes: 1