From 405bbceeac2633f54c2a50671b499347548b3c62 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Sep 2022 19:07:04 +0300 Subject: [PATCH] .gitconfig: Add protocol changers and fixers Add `git://` protocol fixers and HTTPS/SSH changers. Commented out -- they're only examples. --- .gitconfig | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.gitconfig b/.gitconfig index 38ab1e4..a0e63f1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -251,12 +251,37 @@ fontui = -family \"DejaVu Sans\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0 fontdiff = -family \"DejaVu Sans Mono\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0 -# Github URL shortcuts -[url "git@github.com:"] - insteadOf = "gh:" - insteadOf = "github:" - insteadOf = "git://github.com/" -[url "git@gist.github.com:"] - insteadOf = "gst:" - insteadOf = "gist:" - insteadOf = "git://gist.github.com/" +# git:// protocol fixers +#[url "https://git@github.com"] +# insteadOf = "git://github.com" +#[url "https://git@gist.github.com"] +# insteadOf = "git://gist.github.com" +#[url "ssh://git@github.com"] +# insteadOf = "git://github.com" +#[url "ssh://git@gist.github.com"] +# insteadOf = "git://gist.github.com" +#[url "https://git@gitlab.com"] +# insteadOf = "git://gitlab.com" +#[url "https://git@gist.gitlab.com"] +# insteadOf = "git://gist.gitlab.com" +#[url "ssh://git@gitlab.com"] +# insteadOf = "git://gitlab.com" +#[url "ssh://git@gist.gitlab.com"] +# insteadOf = "git://gist.gitlab.com" + +# Protocol changers +#[url "https://git@github.com"] +# insteadOf = ssh://github.com +# insteadOf = ssh://git@github.com + +#[url "ssh://git@github.com"] +# insteadOf = https://github.com +# insteadOf = https://git@github.com + +#[url "https://git@gitlab.com"] +# insteadOf = ssh://gitlab.com +# insteadOf = ssh://git@gitlab.com + +#[url "ssh://git@gitlab.com"] +# insteadOf = https://gitlab.com +# insteadOf = https://git@gitlab.com -- 2.39.5