pub fn remote_origin(url: &str) -> Option<String>Expand description
scheme://host[:port] of a Git remote URL, host lowercased, userinfo dropped.
Handles the URL forms (https://, http://, git://, ssh://) and the scp-like
user@host:path, which is ssh://host. A local path, file:// URL or anything without
a host is None: it names no peer to send a credential to.