• Get the latest commit of a git repository.

    Parameters

    • Optional directory: string

      The directory of the git repository.

    Returns Promise<DefaultLogFields & ListLogLine>

    The latest commit of the repository.