From 7ee2892ec15a78fba2918ee866e49fd5d1ba6323 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 1 Nov 2023 23:23:01 +0100 Subject: [PATCH] updated git config to use seperate user profiles --- .config/git/config | 25 ++++++++++++++----------- .config/git/private.inc | 6 ++++++ .config/git/public.inc | 3 +++ 3 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .config/git/private.inc create mode 100644 .config/git/public.inc diff --git a/.config/git/config b/.config/git/config index 9e4cfae..913d975 100644 --- a/.config/git/config +++ b/.config/git/config @@ -1,23 +1,26 @@ -[user] - name = Niklas Kapelle - email = niklas@kapelle.org - signingkey = 4EB651B36D841D16 [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true + [init] defaultBranch = master + [core] excludesFile = ~/.config/gitignore + [pager] - diff = delta - log = delta - reflog = delta - show = delta + diff = delta + log = delta + reflog = delta + show = delta [interactive] - diffFilter = delta --color-only -[commit] - gpgsign = true + diffFilter = delta --color-only + +[user] + useconfigonly = true + +[includeIf "hasconfig:remote.*.url:**/*git.kapelle.org:*/**"] + path = ~/.config/git/private.inc diff --git a/.config/git/private.inc b/.config/git/private.inc new file mode 100644 index 0000000..42c7864 --- /dev/null +++ b/.config/git/private.inc @@ -0,0 +1,6 @@ +[user] + name = Niklas Kapelle + email = niklas@kapelle.org + signingkey = 4EB651B36D841D16 +[commit] + gpgsign = true diff --git a/.config/git/public.inc b/.config/git/public.inc new file mode 100644 index 0000000..4ef2e83 --- /dev/null +++ b/.config/git/public.inc @@ -0,0 +1,3 @@ +[user] + name = Djeeberjr + email = djeeberjr@gmail.com