From 17e20bc020be84a05c9350007250b534b4a41ca6 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Sun, 20 Aug 2023 17:38:28 +0200 Subject: [PATCH] gitconfig: Add support for LFS --- .gitconfig.inc/common.gitconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitconfig.inc/common.gitconfig b/.gitconfig.inc/common.gitconfig index 41d31a0..4fdf05e 100644 --- a/.gitconfig.inc/common.gitconfig +++ b/.gitconfig.inc/common.gitconfig @@ -1,5 +1,6 @@ [core] - eol = lf + # Normalize line endings + autocrlf = input [init] defaultBranch = main @@ -36,6 +37,12 @@ [credential] helper = /usr/lib/git-core/git-credential-libsecret +[filter "lfs"] + required = true + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + [pretty] ls = tformat:%C(yellow)%h %Cgreen%ad %Creset%s %Cblue[%an]%C(auto)%d lsd = tformat:%>|(13)%C(yellow)%h %Cgreen%ad %Creset%s %Cblue[%an]%C(auto)%d