-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: prune lfs files #540
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for asking here but I didn't found a better place.
I would like to prune old versions from local lfs storage, in a similar way as
git lfs prune
does. The problem withgit lfs prune
is that it's intended to free local space but doesn't actually change history, so the reference to the old version remains. If I then want to clone or push the repo I get errors likeSo I would like to remove those old versions altogether. I could be something like "keep just the newest k versions" or "remove all versions older than t" or "remove all versions that are larger than s". In all cases, the last version should be kept and when a version is deleted both the file and the reference should be removed.
Thanks!
The text was updated successfully, but these errors were encountered: