• get hash of the current commit

    Parameters

    • Optionalcwd: string | URL

      override the current working directory

    Returns Promise<string>