Mark Lucernas
2020-08-08

Git-lfs Usage

Init

Initialize git lfs (provided its already installed)

📑 Installation

# Global initialization
git lfs install

# Only for local repository
git lfs install --local

Track

Track files with git lfs

  • git lfs track "*.psd" – This will track all .psd files

NOTE: Make sure .gitattributes is tracked

  • git add .gitattributes

Then just regularly commit and push to GitHub normally

git add file.psd
git commit -m "Add design file"
git push origin master

Ref:


Resources