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-scm.com/docs/git-remote git-remote
@api private
Public Instance Methods
Source
# File lib/git/commands/remote/update.rb, line 73 def call(*, **) super end
@overload call(*remote_or_group, **options)
Execute the `git remote update` command @param remote_or_group [Array<String>] zero or more remote names or remote group names @param options [Hash] command options @option options [Boolean, nil] :verbose (nil) show remote URLs alongside remote names Alias: :v @option options [Boolean, nil] :prune (nil) prune stale tracking refs while updating remotes Alias: :p @return [Git::CommandLine::Result] the result of calling `git remote update`
@raise [ArgumentError] if unsupported options are provided
@raise [Git::FailedError] if git exits with a non-zero exit status
@api public
Calls superclass method
Git::Commands::Base::call