code: def remote(self, name='origin'):
          
          r = Remote(self, name)
          if not r.exists():
              raise ValueError("Remote named '%s' didn't exist" % name)
          return r
docs: :return: Remote with the specified name
          :raise ValueError:  if no remote with such a name exists