From: Oleg Broytman Date: Thu, 15 Sep 2022 16:07:04 +0000 (+0300) Subject: .gitconfig: Add protocol changers and fixers X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=405bbceeac2633f54c2a50671b499347548b3c62;p=dotfiles.git .gitconfig: Add protocol changers and fixers Add `git://` protocol fixers and HTTPS/SSH changers. Commented out -- they're only examples. --- 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