Git Large File Store (LFS)
An open source Git extension for versioning large files
Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
Install Git LFS onto a Computer
-
Launch a terminal and navigate to the root directory of the repository you want to enable GitLFS. 2 . Run the following command:
$ git lfs install
-
To add a file to track run the following command:
$ git lfs track "*.psd"
In this command a git attribute will be added in
.gitattributes
to track all.psd
files with GitLFS. -
Check that the files will become Git LFS objects.
Run
git lfs status
to see which files are going to be committed as Git LFS objects.Run
git lfs ls-files
to list files that are being tracked by GitLFS.Reference: https://stackoverflow.com/questions/54451856/how-can-i-tell-if-a-file-will-be-uploaded-to-git-lfs-correctly
-
Commit and push changes to Git.
Note: In each Git repository where you want to use Git LFS, select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.
Journal
- 2020-06-04
Install GitLFS onto a Computer
section. This was a Google Doc I made - 2020-09-09 Added step 4
Check that the files will become Git LFS objects.