From f00b3ba481d2b16b9763736d5b7bf4d62fab2bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Wed, 19 Nov 2025 15:39:14 +0100 Subject: [PATCH] git: Use https to pull from github --- git/gitconfig.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/git/gitconfig.j2 b/git/gitconfig.j2 index 9bf608f..c14d0bd 100644 --- a/git/gitconfig.j2 +++ b/git/gitconfig.j2 @@ -118,6 +118,13 @@ [url "ssh://git@code.hkoerber.de:2222/"] insteadOf = https://code.hkoerber.de/ +# https://stackoverflow.com/a/71971739 +[url "https://github.com/"] + insteadOf = "git@github.com:" +[url "git@github.com:"] + pushInsteadOf = "https://github.com/" + pushInsteadOf = "git@github.com:" + [init] defaultBranch = main [safe]