Git LFS (Large File Storage) is an extension for Git that enables more efficient handling of large files in a Git repository. It works by replacing large files, such as audio samples, videos, datasets, and graphics, with text pointers inside the Git repository, while storing the actual file contents on a separate remote server. This separation allows Git to maintain its performance and reliability when dealing with large files.

To utilize an open-source Git extension for managing large files, download and install the Git command line extension from https://git-lfs.com/. Alternatively, if you’re using a Mac, execute ‘brew install git-lfs’, or for Windows, use the installation package.

To activate Git LFS inside of your Git directory execute

git lfs install

Specify what type of files you would like LFS to manage

git lfs track "*.psd"

Make sure .gitattributes is tracked

git add .gitattributes

Then commit as usual

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

To ensure that others cannot modify your LFS file while you’re working on it, activate the file locking feature

git config lfs.https://git.cs.du.edu/cs-docs/kb-docs.git/info/lfs.locksverify true

Please, contact tech support at support@cs.du.edu or 303-871-3299 if you have any questions.