fetch

Function fetch 

Source
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 origin remote cannot be found.
  • Performing git fetch for the requested branches fails.