Git LFS HowTo
How to install the LFS (Large File System) option for Git on Linux/Ubuntu:
1) First, download the git-lfs tar ball given here:
2) extract the tar ball:
3) run the install script of the tar ball:
4) initialize git lfs for the current user
5) In your repo, add file extensions that should be tracked and handled as a large file, e.g. zip or bz2 files:
6) This creates a .gitattributes file, that should be staged:
7) Stage the large files that you want to store on the server-side, e.g. some compressed zip files:
8) Commit the changes locally:
9) Push the changes to the server:
10) When a file fails to upload because of a file size restriction and the file has not yet been tracked, the file needs to be migrated manually to lfs:
Note: On GitHub 1GB of LFS storage is free, but any additional pack of 50GB costs $5 per month. The maximum file size for Git LFS is 2GB unless you upgrade your plan.
11) To download a LFS file on another computer, you need to pull: