• If the .git directory tree is not clean (has uncommitted changes) it throws an abort error.

    Parameters

    • Optional directory: string

      The directory to check.

    Returns Promise<void>