class Git::Commands::Remote::Update

‘git remote update` command

Fetches updates for remotes or remote groups in the repository. When neither a remote nor a group is specified, updates all remotes that are not marked with ‘remote.<name>.skipDefaultUpdate`.

@example Fetch updates for all configured remotes

update = Git::Commands::Remote::Update.new(execution_context)
update.call

@example Fetch updates for a specific remote

update = Git::Commands::Remote::Update.new(execution_context)
update.call('origin')

@example Fetch updates and prune stale tracking refs

update = Git::Commands::Remote::Update.new(execution_context)
update.call('origin', prune: true)

@note ‘arguments` block audited against git-scm.com/docs/git-remote/2.53.0

@see Git::Commands::Remote

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

@api private