Skip to content

git-lfs

The git-lfs resource reference. This resource will install git-lfs or git large file system, an addon to git that allows repositories to replace large files with text pointers. For more info, see here.

Parameters:

No parameters are currently available for the git-lfs install

Example usage:

codify.json
[
{
"type": "git-lfs"
}
]

Dependencies:

The git-lfs resource has a dependency on homebrew. A working version of homebrew must be installed in order for this resource to work. See the homebrew resource to see how to install it using Codify. The dependency between the two resources will be automatically resolved and homebrew will be installed first if both are specified in a config.

Initializing git-lfs in a git repository

  1. Create a codify.json file anywhere.
  2. Open codify.json with your file editor and paste in the follow configs.
codify.json
[
{
"type": "git-lfs"
}
]
  1. Run codify apply in the directory of the file. Git lfs should now be installed.
  2. Navigate to the repository that needs git-lfs and run:
terminal
git lfs install