]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: Add protocol changers and fixers
authorOleg Broytman <phd@phdru.name>
Thu, 15 Sep 2022 16:07:04 +0000 (19:07 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 29 Sep 2022 16:55:12 +0000 (19:55 +0300)
Add `git://` protocol fixers and HTTPS/SSH changers.
Commented out -- they're only examples.

.gitconfig

index 38ab1e492bc9cfb81889e53233366ee4cfbb0d67..a0e63f1b4858a261464865f9efa9836bc2f534ea 100644 (file)
        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