pub fn fetch_and_checkout<P: AsRef<Path>>(
remote: &str,
target_directory: P,
refspec: &str,
) -> Result<(), Box<dyn Error>>
Expand description
Fetch and checkout the specified refspec from the remote repository without fetching any additional history.