def create_remote(name, url, path = Dir.pwd, opts = {})
      g = MiniGit.new(path)
      g.remote :add, opts, name, url.to_s
    end
def create_remote(name, url, path = Dir.pwd, opts = {})
      g = MiniGit.new(path)
      g.remote :add, opts, name, url.to_s
    end
Create a new remote <name> targeting url <url>
 You can pass additional options expected by git remote add in <opts>,
 for instance as follows:

  create_remote('origin', url, dir, { :fetch => true })