code: def remote_url(self, remotename='origin'):
          
          cmd = ['git', 'config', 'remote.%s.url' % remotename]
          return self.sh(cmd, shell=False,
                         ignore_error=True).strip()
docs: Determine the primary remote url for this Repository
  
          Returns:
              str: primary remote url for this Repository
                  (``git config remote.origin.url``)