I use git-lfs to track large files, the setup is:
.
├── ...
├── ...
├── large-files
├── ...
├── ...
└── .git
where an external storage is mounted on large-files
, and all large files go here.
The problem with this setup is, there is a .git/lfs
directory, which uses the same amount disk spaces as the large-files
, since I will never delete from large-files
, and my SSD, where the working tree resides, has smaller capacity than the external storage, .git/lfs
will outgrow my SSD's capacity.
Is there a way to reduce the size of this .git/lfs
without moving it to an external storage? (putting .git
or the entire working tree to the external storage is not an option, because the external storage is not always available)