Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
In my case I want to save a sqlite db file with LFS. Here is the commands I use.
1 | # 1. Install LFS. From: https://packagecloud.io/github/git-lfs/install |
I don’t know why that, after I enable LFS feature, I have to type the username/password THREE times instead of once after running “git push” command.
Added on 2018-01-15.
How to make git lfs work after clone a git repository which uses git lfs.
1 | # 1. Install git lfs. |
Added on 2018-02-14.
When running the “curl” command on Linux Mint to install “git-lfs” repository, the created source file should be updated as below to avoid error that no package can be used:
1 | # From the following lines: |
Here is the LFS specification document, in which more details are given.