import { parseGitUrl } from "https://deno.land/x/scaffold@0.3.0/src/parse.ts";
From the provided string, extract the hostname and the path.
Adapted from https://github.com/Rich-Harris/degit/blob/64b80577acf3313b669840f7452800ee8d09fbf3/src/index.js#L327-L364
Returns
GitRepository | undefined