• Returns true if the .git directory tree is clean (no uncommitted changes).

    Parameters

    • Optional directory: string

      The directory to check.

    Returns Promise<boolean>

    True is the .git directory is clean.