LFS
Git LFS defines a mechanism for tracking externally hosted files in a Git repository, implemented using Git filters.
Installation
It's usually packaged as git-lfs
, so for macOS:
brew install git-lfs
Then install the filter (modifies your ~/.gitconfig
):
git lfs install
Track
To track files in LFS:
git lfs track '*.png'
This adds the following line to .gitattributes
:
*.png filter=lfs diff=lfs merge=lfs -text