Method: Git::Base#fetch

Defined in:
lib/git/base.rb

#fetch(remote = 'origin', opts = {})

fetches changes from a remote branch - this does not modify the working directory, it just gets the changes from the remote if there are any

[View source]

436
437
438
439
440
441
442
# File 'lib/git/base.rb', line 436

def fetch(remote = 'origin', opts = {})
  if remote.is_a?(Hash)
    opts = remote
    remote = nil
  end
  self.lib.fetch(remote, opts)
end