class Git::Commands::Fetch

Implements the ‘git fetch` command

Downloads objects and refs from another repository. Fetches branches and/or tags from one or more other repositories, along with the objects necessary to complete their histories.

@example Typical usage

fetch = Git::Commands::Fetch.new(execution_context)
fetch.call
fetch.call('origin')
fetch.call('origin', 'refs/heads/main')
fetch.call(all: true, prune: true)
fetch.call('origin', merge: true)

@note ‘arguments` block audited against

https://git-scm.com/docs/git-fetch/2.53.0

@see git-scm.com/docs/git-fetch git-fetch

@see Git::Commands

@api private