You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 with git 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 like
Your push referenced at least 1 unknown Git LFS object
So 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:
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: