code: def get_remote_url(path, remote="origin"):
      
      path = get_path(path)
      cmd = ["config", "--get", "remote.%s.url" % remote]
      return __run_git(cmd, path)[0]
docs: Run git config --get remote.<remote>.url in path.
  
      :param path: Path where git is to be run
      :param remote: Remote name
      :return: str or None