pub fn fetch(branches: &[&str]) -> Result<()>Expand description
Fetches the specified branch names from the origin remote.
Used before switching to a branch that may only exist remotely (e.g. derived from a GitHub PR URL).
ยงErrors
- The repository cannot be discovered.
- The
originremote cannot be found. - Performing
git fetchfor the requested branches fails.