pub fn prepare_clone<Url, E>(
    url: Url,
    path: impl AsRef<Path>
) -> Result<PrepareFetch, Error>where
    Url: TryInto<Url, Error = E>,
    Error: From<E>,
Expand description

Create a platform for configuring a clone with main working tree from url to the local path, using default options for opening it (but amended with using configuration from the git installation to ensure all authentication options are honored).

See `clone::PrepareFetch::new() for a function to take full control over all options.