Git Large File Storage (LFS)
Git is inefficient when dealing with large files. To solve this problem there is an extension for large file storage (LFS).
Installation
On Debian, install the package git-lfs
.
Usage
Once the extension is installed, files to be managed can be tracked via git lfs
instead of being treated like
standard git files.
To track large NumPy array files ending with .npy
, run
$ git lfs track *.npy
Check that .gitattributes
has been created, then add and commit it.
$ git add .gitattributes
$ git commit -m "track *.npy using git lfs"