run

Function run 

Source
pub fn run<S>(
    working: Option<&Path>,
    args: impl IntoIterator<Item = S>,
) -> Result<Output, Error>
where S: AsRef<OsStr>,
Expand description

Execute a git command by spawning a child process and collect its output. If working is Some, the command is run as if git was started in working instead of the current working directory, by prepending -C <working> to the command line.