From: Oleg Broytman Date: Fri, 24 Mar 2017 14:12:47 +0000 (+0300) Subject: .gitconfig: add Github URL shortcuts X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=835a73ad2a97584e09bbf8d2a4fad903de28862c;p=dotfiles.git .gitconfig: add Github URL shortcuts --- diff --git a/.gitconfig b/.gitconfig index 6e59db2..c7383fe 100644 --- a/.gitconfig +++ b/.gitconfig @@ -206,3 +206,17 @@ [gui] 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:" + pushInsteadOf = "github:" + pushInsteadOf = "git://github.com/" +[url "git://github.com/"] + insteadOf = "github:" +[url "git@gist.github.com:"] + insteadOf = "gst:" + pushInsteadOf = "gist:" + pushInsteadOf = "git://gist.github.com/" +[url "git://gist.github.com/"] + insteadOf = "gist:"