• Get the HEAD symbolic reference of a git repository.

    Parameters

    • Optional directory: string

      The directory of the git repository.

    Returns Promise<string>

    The HEAD symbolic reference of the repository.