From 92a01d99ee1122ac57099e341311179a66288c80 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 20 Feb 2020 22:47:00 +0100 Subject: [PATCH] [git] Substitute git for https connections When git is invoked with https for either github or gitlab then automatically switch it out to git@server.com --- git/.config/git/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git/.config/git/config b/git/.config/git/config index 7e642b7..0fc6c27 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -10,5 +10,9 @@ [alias] ignore = "!gitignore -f" pushmerge = "push -o merge_request.merge_when_pipeline_succeeds" # see https://docs.gitlab.com/ce/user/project/push_options.html#merge-when-pipeline-succeeds-alias +[url "git@github.com:"] + insteadOf = https://github.com +[url "git@gitlab.com:"] + insteadOf = https://gitlab.com [commit] gpgsign = true