Git LFS
Git LFS¶
Git LFS is used to for large file storage.
- Download and install: Git Large File Storage
Install Git LFS on Linux¶
- Navigate to https://github.com/git-lfs/git-lfs/releases
- Download the package .rpm file for your Linux Distribution
- Switch to root user
sudo su
- Install the package
rpm -iv {absolute path to .rpm file}
- Install git lfs
git lfs install
Fetch all git lfs files¶
NOTE: Use this command if you installed Git LFS after cloning the repo
git lfs fetch --all
Track a file with git lfs¶
This will add the file paths to the .gitattributes file
NOTE: The .gitattibutes file must be committed before it takes effect
git lfs track {path to file}
See files currently tracked¶
git lfs ls-files
See lfs files committed or staged for commit¶
git lfs status