code: def git_remote(self):
          
          if self._git_remotes is None or len(self._git_remotes) < 1:
              return None
          if 'origin' in self._git_remotes:
              return self._git_remotes['origin']
          k = sorted(self._git_remotes.keys())[0]
          return self._git_remotes[k]
docs: If the distribution is installed via git, return the first URL of the
          'origin' remote if one is configured for the repo, or else the first
          URL of the lexicographically-first remote, or else None.
  
          :return: origin or first remote URL
          :rtype: :py:obj:`str` or :py:data:`None`