From 67fc3615a5667c945e06f5fc459322783c3752db Mon Sep 17 00:00:00 2001 From: caseytomlin Date: Mon, 9 Dec 2024 07:23:22 +0000 Subject: [PATCH] handle git ssh if codespaces --- .chezmoiscripts/run_once_add-ssh-pk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.chezmoiscripts/run_once_add-ssh-pk.sh b/.chezmoiscripts/run_once_add-ssh-pk.sh index 1acd7ea..152f4db 100644 --- a/.chezmoiscripts/run_once_add-ssh-pk.sh +++ b/.chezmoiscripts/run_once_add-ssh-pk.sh @@ -16,3 +16,6 @@ else exit 0 fi +if [ -z "$CODESPACES" ]; then + git config --global url."git@github.com".insteadOf "https://github.com" +fi