From f0b6394c34b8e7f7229445003ccea76c79925b41 Mon Sep 17 00:00:00 2001 From: exu Date: Fri, 29 Nov 2024 07:20:07 +0100 Subject: [PATCH] Add ssh key to gitconfig --- roles/config/files/.gitconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/config/files/.gitconfig b/roles/config/files/.gitconfig index cc94a1d0..4eada1ea 100755 --- a/roles/config/files/.gitconfig +++ b/roles/config/files/.gitconfig @@ -1,6 +1,8 @@ [user] name = exu email = mrc@frm01.net +[core] + sshCommand = "ssh -i $HOME/.ssh/id_ed25519_git" [init] defaultBranch = main # Some popular options to test: @@ -26,5 +28,5 @@ # checkout latest tag latest = !sh -c 'git describe --tags $(git rev-list --tags --max-count=1) | xargs git checkout' - # conditonal config -[includeIf "gitdir:**/occ/**"] +[includeIf "gitdir:**gitprojects/occ/**"] path = ~/.gitconfig-occ