Function revertLocalChanges

  • Reverts all local changes (both staged and unstaged) by stashing them and then dropping the stash.

    Parameters

    • options: GitCommonOptions

    Returns boolean

    True if the revert was successful, false otherwise. It will also be false if there were no changes to revert. (To distinguish between this case and errors, use the throwOnError option.)

  • Parameters

    • cwd: string

    Returns boolean

    Deprecated

    Use object params version