Skip to content

Instantly share code, notes, and snippets.

@sgarciav
Last active July 19, 2022 17:02
Show Gist options
  • Save sgarciav/7f7f6a328de7d0ec22b8c54fe17fbc65 to your computer and use it in GitHub Desktop.
Save sgarciav/7f7f6a328de7d0ec22b8c54fe17fbc65 to your computer and use it in GitHub Desktop.

About

Instructions for using git lfs to track large file (greater tham 100MBs). See instructions here.

You can also watch this video to learn about the different features that lfs provides.

$ sudo apt install git-lfs
$ cd /path/to/[GIT REPO]
$ git lfs install
$ git track [filename or type of file you wish to track]

The last comand will update your .gitattributes file. Make sure to commit and push this change to the server FIRST before trying to track the large files.

You'll then continue using git as you normally would.

You only have to run these instructions once for each repo. The git track command you'll have to run whenever you want to update the files or types of file you want to track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment