From b342f197bc0325c1c6cf36afafade9d1c4484c1b Mon Sep 17 00:00:00 2001 From: Jens Nolte <git@queezle.net> Date: Sun, 13 Mar 2022 15:32:33 +0100 Subject: [PATCH] Update git config --- home-profiles/git-jens/.config/git/config | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/home-profiles/git-jens/.config/git/config b/home-profiles/git-jens/.config/git/config index 998cda9..002e9b6 100644 --- a/home-profiles/git-jens/.config/git/config +++ b/home-profiles/git-jens/.config/git/config @@ -1,13 +1,19 @@ [user] - email = git@queezle.net - name = Jens Nolte + email = git@queezle.net + name = Jens Nolte + +[init] + defaultBranch = main + +[commit] + verbose = true [alias] - graph = log --graph --decorate --all --format=format:'%C(yellow)%h%C(reset) %C(red)%aN%C(reset) %C(dim cyan)(%ar)%C(reset)%C(dim magenta)%d%C(reset)%n%C(white)%s%C(reset)' + graph = log --graph --decorate --all --format=format:'%C(yellow)%h%C(reset) %C(red)%aN%C(reset) %C(dim cyan)(%ar)%C(reset)%C(dim magenta)%d%C(reset)%n%C(white)%s%C(reset)' - g = !git graph + g = !git graph - changes = "!f() { \ - { git --no-pager log --max-count=1 --shortstat --color=always ${1:-HEAD};\ - echo; git --no-pager diff --color=always "${1:-HEAD}^" "${1:-HEAD}"; } \ - | $PAGER -r; }; f" + changes = "!f() { \ + { git --no-pager log --max-count=1 --shortstat --color=always ${1:-HEAD};\ + echo; git --no-pager diff --color=always "${1:-HEAD}^" "${1:-HEAD}"; } \ + | $PAGER -r; }; f" -- GitLab