From c085561ef880c1775056e18dc6e2534eddd9a3aa Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 2 Jun 2022 14:50:05 +0200 Subject: Update gitconfig to include separate work config for user config --- .gitconfig | 4 +++- .gitconfig.work.inc | 5 +++++ README.md | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitconfig.work.inc diff --git a/.gitconfig b/.gitconfig index 3feb78d..6d056a5 100644 --- a/.gitconfig +++ b/.gitconfig @@ -8,7 +8,7 @@ [merge] tool = vimdiff [user] - name = Ahmed AbdelHalim + name = a14m email = a14m@pm.me username = a14m signingkey = 7A690E8DFE36C63A99355B1B76296F290BE3A016 @@ -37,3 +37,5 @@ prune = true [commit] gpgsign = true +[includeIf "gitdir/i:~/Work/Springer"] + path = ~/.gitconfig.work.inc diff --git a/.gitconfig.work.inc b/.gitconfig.work.inc new file mode 100644 index 0000000..09ea817 --- /dev/null +++ b/.gitconfig.work.inc @@ -0,0 +1,5 @@ +[user] + name = Ahmed AbdelHalim + email = a14m@pm.me + username = a14m + signingkey = 7A690E8DFE36C63A99355B1B76296F290BE3A016 diff --git a/README.md b/README.md index a48d4bb..54b2fc5 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ ln -sf ~/.rc/.tmux.conf ~/.tmux.conf ln -sf ~/.rc/.tmux-osx.conf ~/.tmux-osx.conf ln -sf ~/.rc/.gitconfig ~/.gitconfig +ln -sf ~/.rc/.gitconfig.work.inc ~/.gitconfig.work.inc ln -sf ~/.rc/.gitignore_global ~/.gitignore_global mkdir -p ~/.ssh -- cgit v1.2.3