git-lfs
Git Large File Storage ('LFS') needs to change your ~/.gitconfig
to check out those binary files:
1cat ~/.gitconfig
2git lfs install
3cat ~/.gitconfig
Then track some filetypes with:
1cd $git_repository
2ext=ttf
3git lfs track "*.$ext"
Or a directory with:
1git lfs track "images/"
Track the changes to .gitattributes
:
1git status
2git add .gitattributes
3git commit -m "add $ext to lfs"
Bash Completion
If bash completion does not work, you'll have to add it:
1git lfs completion bash | sudo tee /usr/share/bash-completion/completions/git-lfs
Trouble Shooting
You have some file "$FILE".png, which has some problem.
Check the filetype:
1file "$FILE".png
This should say the type is 'image'.
If it says the type is 'text', then this file is really just a reminder to git-lfs
to check out that file.
Check git-lfs
is expecting that file:
1git lfs status
2git lfs ls-files
...then try these commands, and check the filetype again:
1git lfs fetch --all
2git lfs fsck
3git lfs checkout
4git lfs status