-
Notifications
You must be signed in to change notification settings - Fork 3
Config_GitLFS
How do I initialize this repository with Git-LFS?
If you do not already have Git LFS installed on your local computer, first follow instructions here in order to install it. To summarize:
-
Download the installer here.
-
Run the executable and complete the installation process.
-
Verify that it is installed by running the following in
Git Bash$ git lfs install
If you would like to use the terminal to initialize form the command line (Git Bash), read here; otherwise, if you are using GitKraken (typical git GUI at CPL or IIT), read here.
Follow the documentation on github, summarized here:
-
In the terminal, change your current working directory to the
.gitfolder where you installednigeLab. -
For each type of file that you'd like to track, run the following:
$ git lfs track "*.[extension]" filter=lfs diff=lfs merge=lfs -binaryWhere [extension] corresponds to the files to be tracked using Git LFS.
Currently, the following file types are tracked in the committed
nigeLab.gitattributesfile:*.svg filter=lfs diff=lfs merge=lfs -binary *.png filter=lfs diff=lfs merge=lfs -binary *.jpg filter=lfs diff=lfs merge=lfs -binary *.jpeg filter=lfs diff=lfs merge=lfs -binary *.rhs filter=lfs diff=lfs merge=lfs -binary *.rhd filter=lfs diff=lfs merge=lfs -binary *.PNG filter=lfs diff=lfs merge=lfs -binary *.JPG filter=lfs diff=lfs merge=lfs -binary *.bmp filter=lfs diff=lfs merge=lfs -binary
- Open the
nigeLabrepository tab inGitKraken. - Press
ctrl+commaor use the file menu to navigate toFile>Preferences... - About halfway down on the left, under
Repo-Specific Preferences, you should see a tab option forLFS, click that. - Click the button to
initializeGit LFS file tracking for this repository.
