Git LFS
TLDR, What should I do to use it?
- For normal user
- don’t bother, It should work the same like other git repo
- in SourceTree, there will be extra popup that may happen to confirm downloading files with Git LFS, just click yes
- For developers
- Install Git LFS
- add files to Git LFS when it is a binary files and larger than 10 MB (usually assets or docs) when doing a commit
- If you are unsure, you can ask the Lead Programmer
What is Git LFS
-
Git LFS is a Git extension that reduces the impact of large files in your repository by downloading the relevant versions of them
-
Agate already support using Git LFS so we try to maximize it’s use
-
For more information, see the video below or open the page below
Quick Start
-
Install git LFS
-
check your git lfs version with
git lfs env
it is recommended to have latest version -
setup git lfs in your dev env with
git lfs install
-
start tracking binary file as lfs file with
git lfs track "*.psd"
-
add and commit your
.gitattributes
⇒git add .gitattributes
-
continue using git as usual
FAQ
My Previous Binary file is not registered as git LFS
Git LFS only works for commit after it’s configuration added to commits. thus it won’t work for previous commits.
you need to migrate your entire project history to use git LFS
No Comments