LFS is a comfortable and efficient way to store large binaries.
On the JSC gitlab server, a single file may not exeed the size of 20Mb, otherwise the push will be rejected. You have to undo the rejected commit and commit them using LFS.
git lfs versionotherwise install lfs client
git lfs install
This command specifies the files which should use LFS and also creates or updates .gitattributes.
git lfs track "*.bin" # or git lfs track myBigFile.bin
Important: Add .gitattributes to the repository.
git add .gitattributes
Now you may use git like before to add a file to the repository.
git add myBigFile.bin git commit -m "Add binary file using lfs" git push origin master
If you have many LFS objects, cloning with git lfs clone is faster.
git lfs clone
If you have already checked out a repository and want to replace the object links (e.g. ExamplePointerFile) with the binary contents, use
git lfs pull or
git lfs fetch # downloads objects with batch mode git lfs checkout # changes objects to binary files
Show files which use LFS
git lfs ls-files
For further questions, send an email to email@example.com