From a9e69d8666b551f4f46f3b40702ad0294438184b Mon Sep 17 00:00:00 2001 From: histalek Date: Mon, 19 Feb 2024 10:55:58 +0100 Subject: [PATCH] feat(git): Update git config Many configs taken from this amazing talk at FOSDEM 2024 [1] [1] https://www.youtube.com/watch?v=aolI_Rz0ZqY --- .config/git/config | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/git/config b/.config/git/config index 0c2b572..318dc91 100644 --- a/.config/git/config +++ b/.config/git/config @@ -10,6 +10,12 @@ ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate ll = ls --numstat +[blame] + ignoreRevsFile = .git-blame-ignore-revs + +[branch] + sort = -committerdate + [color] diff = auto status = auto @@ -22,6 +28,9 @@ changed = yellow bold untracked = red +[column] + ui = auto + [commit] gpgsign = true verbose = true @@ -61,6 +70,9 @@ [pull] rebase = true +[rerere] + enabled = true + [includeIf "gitdir:~/Documents/Uni/"] path = ~/.config/git/subconfigs/uni