From 551f0d44ccc73b6a97387b8843f6718110253a58 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