From: Samir Benmendil Date: Tue, 29 Jan 2019 07:29:09 +0000 (+0000) Subject: git: add lfs filter X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/947105c36b4dd765db4164183bbb99ecc4160d0b git: add lfs filter I believe this is safe, even when lfs is not installed, if not this should be removed --- diff --git a/git/config b/git/config index 585b2cd..6e0ef15 100644 --- a/git/config +++ b/git/config @@ -44,3 +44,8 @@ [alias] remote-to-ssh = "!f(){ local r=$1; git remote set-url $r $(git remote get-url $r | sed -r 's,https?://([^/]+),git@\\1:,'); };f" clean-orig = "!git ls-files -o --exclude-standard | grep '\\.orig$' | xargs -n100 -p rm" +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true