From 9d2f4fdea05edbdac188632267a6fa294fe44e46 Mon Sep 17 00:00:00 2001 From: Lomanic <5020919+Lomanic@users.noreply.github.com> Date: Sun, 22 Jan 2023 01:57:22 +0100 Subject: [PATCH] Make post-checkout set up author.email/name as well If a user has set up both user.email/name and author.email/name in a global ~/.gitconfig, git will default to the global author.email/name when adding commits to a project automatically set up with git-clone-init --- post-checkout | 2 ++ 1 file changed, 2 insertions(+) diff --git a/post-checkout b/post-checkout index 27e6557..83a7fbb 100755 --- a/post-checkout +++ b/post-checkout @@ -49,5 +49,7 @@ fi git config --local user.email "$email" git config --local user.name "$name" +git config --local author.email "$email" +git config --local author.name "$name" echo -e "\nLocal identity for ${PWD##*/} set to \"$name <$email>\""