summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2022-06-02 14:50:05 +0200
committerAhmed Abdelhalim <[email protected]>2022-06-02 15:06:33 +0200
commitc085561ef880c1775056e18dc6e2534eddd9a3aa (patch)
treea71cee0711b076b92f04b84866b06dedc4dd76a0
parentf3a4620e2762a080d31c0da5b3c0a10857954865 (diff)
Update gitconfig to include separate work config for user config
-rw-r--r--.gitconfig4
-rw-r--r--.gitconfig.work.inc5
-rw-r--r--README.md1
3 files changed, 9 insertions, 1 deletions
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
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
+ 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