Declare certain file types to store externally
suggest changeA common workflow for using Git LFS is to declare which files are intercepted through a rules-based system, just like .gitignore files.
Much of the time, wildcards pick file types to track in bulk.
e.g. git lfs track "*.psd"
When a matching file is added and committed, a later push uploads the file contents to LFS storage. The Git repository stores a pointer instead of the file bytes.
After a file has been tracked with lfs, your .gitattributes file will be updated accordingly. GitHub recommends committing that .gitattributes file. Git does not read ~/.gitattributes unless core.attributesFile points at it.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents