pub fn clone(url: &str, target: Option<&Path>) -> Result<()>Expand description
Clones a git repository from a remote URL to a local directory.
§Parameters
url: The URL of the remote repository to clone.target: Optional path to the target directory. If not provided, the repository name will be used.
§Returns
Ok(())if the cloning was successful.Err(Error)if an error occurred during cloning.