Declare certain file types to store externally

suggest change

A 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents