From 7c689d3275c920cd9dce1959ee1dee0d4d7e96a9 Mon Sep 17 00:00:00 2001 From: afranco Date: Thu, 22 Feb 2024 11:39:22 +0000 Subject: [PATCH] chore(GIT): change identity based on remote url --- .gitconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitconfig b/.gitconfig index 2e1d6a7..c2cf472 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,7 +1,11 @@ [user] - email = me@afonsofrancof.com - name = afonsofrancof + email = afonso@francof.net + name = afonso signingkey = ~/.ssh/id_ed25519_sk.pub +[includeIf "hasconfig:remote.*.url:https://github.com/**"] + path = ~/.gitconfig-gh +[includeIf "hasconfig:remote.*.url:ssh://git@github.com/**"] + path = ~/.gitconfig-gh [filter "lfs"] process = git-lfs filter-process required = true