From aaae10279ecf9dbfc55fdb96cc40197896fe41c1 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Fri, 8 May 2020 17:47:21 +0200 Subject: [PATCH] [git] Personal & Work directories config --- git/gitconfig | 10 +++++----- git/gitconfig-personal | 4 ++++ git/gitconfig-work | 4 ++++ 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 git/gitconfig-personal create mode 100644 git/gitconfig-work diff --git a/git/gitconfig b/git/gitconfig index 8eeeb54..33005b8 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -16,17 +16,17 @@ # Resources: # - http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain # - https://github.com/Falkor/dotfiles -[user] - name = Hyacinthe Cartiaux - email = hyacinthe.cartiaux@free.fr - signingkey = 0x550DF40B + +[includeIf "gitdir:~/"] + path = .gitconfig-personal +[includeIf "gitdir:~/repos/work/"] + path = .gitconfig-work [alias] up = pull origin pu = push origin st = status df = diff -# ci = commit -S ci = commit br = branch w = whatchanged --abbrev-commit diff --git a/git/gitconfig-personal b/git/gitconfig-personal new file mode 100644 index 0000000..88fede4 --- /dev/null +++ b/git/gitconfig-personal @@ -0,0 +1,4 @@ +[user] + name = Hyacinthe Cartiaux + email = hyacinthe.cartiaux@free.fr + signingkey = 0x550DF40B diff --git a/git/gitconfig-work b/git/gitconfig-work new file mode 100644 index 0000000..e13876a --- /dev/null +++ b/git/gitconfig-work @@ -0,0 +1,4 @@ +[user] + name = Hyacinthe Cartiaux + email = hyacinthe.cartiaux@uni.lu + signingkey = 0x550DF40B