Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git LFS delete files older than a commit

My LFS storage is unfortunately full. Is there any solution for deleting files in LFS? Is there possible to delete files which are older than a specific commit?

like image 355
Guuk Avatar asked Oct 15 '25 12:10

Guuk


1 Answers

That is only possible if you filter your branch and decouple an existing branch.

https://help.github.com/articles/removing-files-from-git-large-file-storage/

Or you copy your data to a new Git-Repo and delete files you don't need. If you have a reference in you Git history you can't delete a file.

like image 182
René Höhle Avatar answered Oct 18 '25 01:10

René Höhle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!