Decrease LFS size by just keeping latest version, not tracking history?

My repository contains some large blendfiles that are tracked with git LFS. I run into storage limits all the time and can’t push as it would exceed the repository allocated size.

But.

I need the blendifles to be in the project, though I only need the latest version, I don’t need versioning history. The two blendfiles are 200 MB each. My 10GB repo is currently filled with 9.8 GB of lfs data and I’m stuck. I once unstuck by deleting history blobs but that helped for about a week. What can I do in this scenario?

Any help is greatly appreaciated!

Is this on your own server? Or are you using gitlab.com?

If your own server, then you can change the settings and increase it. If you are using gitlab.com then you cannot change it. As explained here in the Gitlab docs: GitLab.com settings | GitLab Docs

you can always buy additional storage using the link above. That is the only option available to you on gitlab.com - for free you cannot use more than 10GB.

1 Like

I’m using gitlab but there is no point for me in storing the history and the project itself will never be bigger than 10gb. I’m working solo and oly the latest version of the file is needed. Thanks!

1 Like

If these large files are only needed in CI/CD, an alternative path could be the generic package registry. The files are not available immediately on git clone then, needing a manual download/upload mechanism. But you’ll only keep latest in the GitLab project, saving storage.

The package registry also supports cleanup policies keeping latest, in case you are accidentally uploading too many versions.

2 Likes

Thank you, this is exactly what I need.

1 Like