From e901d3d45aa21ee6eae568a85ab165468c5e1445 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 27 May 2019 20:31:27 +0200 Subject: [PATCH] Add git configuration for work Signed-off-by: Severin Kaderli --- system/.config/git/config | 10 +++++++--- system/.config/git/config.work | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 system/.config/git/config.work diff --git a/system/.config/git/config b/system/.config/git/config index 143eafe..4ca31b2 100644 --- a/system/.config/git/config +++ b/system/.config/git/config @@ -11,13 +11,14 @@ # This file is automatically used by Git. [user] - email = severin@kaderli.dev name = Severin Kaderli + email = severin@kaderli.dev signingkey = F419F8835B72F0C4 [alias] - # Display the history of the latest 20 commits - l = log --pretty=oneline -n 20 --graph --abbrev-commit + # Display a prettier log + # https://medium.com/@lucaspenzeymoog/prettier-git-logs-one-graph-at-a-time-d3790a753e6b + l = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'" # Update submodules when pulling pl = !git pull && git submodule update --remote --merge @@ -61,3 +62,6 @@ [credential] helper = cache --timeout 7200 + +[includeif "gitdir:~/work/"] + path = ~/.config/git/config.work \ No newline at end of file diff --git a/system/.config/git/config.work b/system/.config/git/config.work new file mode 100644 index 0000000..0692326 --- /dev/null +++ b/system/.config/git/config.work @@ -0,0 +1,20 @@ +# SCRIPT NAME: +# .config/git/config.work +# +# AUTHOR: +# Severin Kaderli +# +# DESCRIPTION: +# This is my work configuration for Git. +# +# USAGE: +# This file is automatically used by Git when inside a subfolder of ~/work. + +[user] + name = Worker Severin + email = severin@work.ch + signingkey = "" + +[alias] + # Create a commit and sign it off + c = commit \ No newline at end of file