X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ad0dc18105248c38946b4a4605d39b57688d28b4..2e5f508f78189c5734237564efad8cbfd9fe4fe3:/git/config 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"