X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ad0dc18105248c38946b4a4605d39b57688d28b4..e51e85b7c6412c8cf281a1d60b0c5a5042d5028b:/git/config?ds=sidebyside diff --git a/git/config b/git/config index 801601a..28e18e4 100644 --- a/git/config +++ b/git/config @@ -41,3 +41,5 @@ rebase = preserve [commit] verbose = true +[alias] + remote-to-ssh = "!f(){ local r=$1; git remote set-url $r $(git remote get-url $r | sed -r 's,https?://([^/]+),git@\\1:,'); };f"