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.
Steps to install on MAC:
homebrew on your machine using terminal.
To install homebrew, Paste below command in terminal and hit enter.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Now, we can install
git-lfs using brew on OSx.
brew install git-lfs
How to download files when
git-lfs was installed after git clone:
If repo is setup using git lfs, and you cloned your repo without installing git lfs, you might run into issue of broken files and images in your local repo.
To fix this issue, Use below command if you have already cloned a repo which is using lfs for files:
git lfs fetch