class Git::Base

def add_remote(name, url, opts = {})


@git.merge('scotts_git/master')
@git.fetch('scotts_git')
@git.add_remote('scotts_git', 'git://repo.or.cz/rubygit.git')

url can be a git url or a Git::Base object if it's a local reference
adds a new remote to this repository
def add_remote(name, url, opts = {})
  url = url.repo.path if url.is_a?(Git::Base)
  self.lib.remote_add(name, url, opts)
  Git::Remote.new(self, name)
end