• get name of the current branch

    Parameters

    • Optionalcwd: string | URL

      override the current working directory

    Returns Promise<string>